/*
 * @Author: wufan
 * @Date: 2020-12-02 10:26:59
 * @LastEditors: wufan
 * @LastEditTime: 2020-12-02 14:21:17
 * @Description: Description
 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
 */
import {
    STORE_GROUP_PERMISSION,
    STORE_PERMISSION,
    STORE_GROUP_LIST,
    STORE_LIST
} from './constants'


const setStoreGroupPermission = (payload: any) => ({
    type: STORE_GROUP_PERMISSION,
    payload
})

const setStorePermission = (payload: any) => ({
    type: STORE_PERMISSION,
    payload
})

const setStoreGroupList = (payload: any) => ({
    type: STORE_GROUP_LIST,
    payload
})

const setStoreList = (payload: any) => ({
    type: STORE_LIST,
    payload
})


export {
    setStoreGroupPermission,
    setStorePermission,
    setStoreGroupList,
    setStoreList
}

