export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    code: '',
    fullName: '',
    gender: 0,
    roles: []
  },
  mutations: {
    updateId (state, id) {
      state.id = id
    },
    updateName (state, name) {
      state.name = name
    },
    updateCode (state, code) {
      state.code = code
    },
    updateFullName (state, fullName) {
      state.fullName = fullName
    },
    updateGender (state, gender) {
      state.gender = gender
    },
    updateRoles (state, roles) {
      state.roles = roles
    }
  }
}
