package subject import "fmt" func getSupplierUserValue(val string) string { return fmt.Sprintf("%s.%s", prefixes.SupplierUser, val) } var SupplierUser = struct { // Users LoginUser string Logout string GetListUser string DetailUser string CreateOwner string UpdateOwner string CreateStaff string UpdateStaff string UpdateStatus string ResetPassword string ChangePassword string CheckToken string CheckTokenSupplierUser string }{ // Users LoginUser: getSupplierUserValue("login_user"), Logout: getSupplierUserValue("logout"), GetListUser: getSupplierUserValue("get_list_user"), DetailUser: getSupplierUserValue("detail_user"), CreateOwner: getSupplierUserValue("create_owner"), UpdateOwner: getSupplierUserValue("update_owner"), CreateStaff: getSupplierUserValue("create_staff"), UpdateStaff: getSupplierUserValue("update_staff"), UpdateStatus: getSupplierUserValue("update_status"), ResetPassword: getSupplierUserValue("reset_password"), ChangePassword: getSupplierUserValue("change_password"), CheckToken: getSupplierUserValue("check_token"), CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"), }