/*
 * @Author: wufan
 * @Date: 2020-12-02 10:26:59
 * @LastEditors: zhangleyuan
 * @LastEditTime: 2020-12-08 19:14:37
 * @Description: Description
 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
 */
import {
    STORE_GROUP_PERMISSION,
    STORE_PERMISSION,
    STORE_GROUP_LIST,
    STORE_LIST,
    WECHAT_LOGIN
} 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
})

const setWechatLogin = (payload: any) => ({
    type: WECHAT_LOGIN,
    payload
})



export {
    setStoreGroupPermission,
    setStorePermission,
    setStoreGroupList,
    setStoreList,
    setWechatLogin
}

