// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.19.4
// source: rpc/core/core.proto

package core

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7

// CoreClient is the client API for Core service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type CoreClient interface {
	//  group: base
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	//  Role management
	//  group: department
	CreateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: department
	UpdateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: department
	GetDepartmentList(ctx context.Context, in *DepartmentReq, opts ...grpc.CallOption) (*DepartmentListResp, error)
	//  group: department
	GetDepartment(ctx context.Context, in *DepartmentReq, opts ...grpc.CallOption) (*DepartmentInfo, error)
	//  group: department
	DeleteDepartment(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  Dictionary Management
	//  group: dictionary
	CreateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: dictionary
	UpdateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: dictionary
	GetDictionaryList(ctx context.Context, in *DictionaryReq, opts ...grpc.CallOption) (*DictionaryListResp, error)
	//  group: dictionary
	GetDictionary(ctx context.Context, in *DictionaryReq, opts ...grpc.CallOption) (*DictionaryInfo, error)
	//  group: dictionary
	DeleteDictionary(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  Details
	//  group: dictionary
	CreateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: dictionary
	UpdateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: dictionary
	GetDictionaryDetailList(ctx context.Context, in *DictionaryDetailReq, opts ...grpc.CallOption) (*DictionaryDetailListResp, error)
	//  group: dictionary
	GetDictionaryDetail(ctx context.Context, in *DictionaryDetailReq, opts ...grpc.CallOption) (*DictionaryDetailInfo, error)
	//  group: dictionary
	DeleteDictionaryDetail(ctx context.Context, in *DeleteDictionaryDetailReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  District management
	//  group: district
	GetDistrict(ctx context.Context, in *DistrictCodeReq, opts ...grpc.CallOption) (*DistrictInfo, error)
	//  group: district
	GetDistrictList(ctx context.Context, in *DistrictReq, opts ...grpc.CallOption) (*DistrictListResp, error)
	//  group: district
	GetDistrictTree(ctx context.Context, in *DistrictCodeReq, opts ...grpc.CallOption) (*DistrictTree, error)
	//  group: district
	GetDistrictName(ctx context.Context, in *GetDistrictNameReq, opts ...grpc.CallOption) (*GetDistrictNameResp, error)
	//  Login Record management
	//  group: login_record
	GetRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*LoginRecordInfo, error)
	//  group: login_record
	Record(ctx context.Context, in *LoginRecordInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  OauthProvider management
	//  group: oauth_provider
	CreateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: oauth_provider
	UpdateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: oauth_provider
	GetOauthProviderList(ctx context.Context, in *OauthProviderReq, opts ...grpc.CallOption) (*OauthProviderListResp, error)
	//  group: oauth_provider
	GetOauthProvider(ctx context.Context, in *OauthProviderReq, opts ...grpc.CallOption) (*OauthProviderInfo, error)
	//  group: oauth_provider
	DeleteOauthProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: oauth_provider
	OauthLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*OauthRedirectResp, error)
	//  group: oauth_provider
	OauthCallback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*UserInfo, error)
	//  Role management
	//  group: role
	CreateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: role
	UpdateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: role
	GetRoleList(ctx context.Context, in *RoleReq, opts ...grpc.CallOption) (*RoleListResp, error)
	//  group: role
	GetRole(ctx context.Context, in *RoleReq, opts ...grpc.CallOption) (*RoleInfo, error)
	//  group: role
	DeleteRole(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  Token management
	//  group: token
	CreateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: token
	UpdateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: token
	GetTokenList(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenListResp, error)
	//  group: token
	GetToken(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenInfo, error)
	//  group: token
	DeleteToken(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: token
	BlockUserAllToken(ctx context.Context, in *TokenUserReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  User Management
	//  group: user
	CreateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: user
	UpdateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: user
	GetUserList(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserListResp, error)
	//  group: user
	GetUser(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserInfo, error)
	//  group: user
	DeleteUser(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  User-Role Relationship Management
	//  UserBindRole 用户绑定角色
	//  group: user_role
	UserBindRole(ctx context.Context, in *UserRoleReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  UserUnbindRole 用户解绑角色
	//  group: user_role
	UserUnbindRole(ctx context.Context, in *UserRoleReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  UserClearRole 用户清理角色
	//  group: user_role
	UserClearRole(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	//  GetUserRoles 获取用户绑定的角色列表
	//  group: user_role
	GetUserRoles(ctx context.Context, in *GetUserRolesReq, opts ...grpc.CallOption) (*RoleListResp, error)
	//  User Management
	//  group: user_social
	CreateUserSocial(ctx context.Context, in *UserSocialInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	//  group: user_social
	UpdateUserSocial(ctx context.Context, in *UserSocialInfo, opts ...grpc.CallOption) (*BaseResp, error)
	//  group: user_social
	GetUserSocialList(ctx context.Context, in *UserSocialReq, opts ...grpc.CallOption) (*UserSocialListResp, error)
	//  group: user_social
	GetUserSocial(ctx context.Context, in *UserSocialReq, opts ...grpc.CallOption) (*UserSocialInfo, error)
	//  group: user_social
	DeleteUserSocial(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
}

type coreClient struct {
	cc grpc.ClientConnInterface
}

func NewCoreClient(cc grpc.ClientConnInterface) CoreClient {
	return &coreClient{cc}
}

func (c *coreClient) InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/initDatabase", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createDepartment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateDepartment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDepartmentList(ctx context.Context, in *DepartmentReq, opts ...grpc.CallOption) (*DepartmentListResp, error) {
	out := new(DepartmentListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getDepartmentList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDepartment(ctx context.Context, in *DepartmentReq, opts ...grpc.CallOption) (*DepartmentInfo, error) {
	out := new(DepartmentInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getDepartment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteDepartment(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteDepartment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createDictionary", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateDictionary", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDictionaryList(ctx context.Context, in *DictionaryReq, opts ...grpc.CallOption) (*DictionaryListResp, error) {
	out := new(DictionaryListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getDictionaryList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDictionary(ctx context.Context, in *DictionaryReq, opts ...grpc.CallOption) (*DictionaryInfo, error) {
	out := new(DictionaryInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getDictionary", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteDictionary(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteDictionary", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createDictionaryDetail", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateDictionaryDetail", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDictionaryDetailList(ctx context.Context, in *DictionaryDetailReq, opts ...grpc.CallOption) (*DictionaryDetailListResp, error) {
	out := new(DictionaryDetailListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getDictionaryDetailList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDictionaryDetail(ctx context.Context, in *DictionaryDetailReq, opts ...grpc.CallOption) (*DictionaryDetailInfo, error) {
	out := new(DictionaryDetailInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getDictionaryDetail", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteDictionaryDetail(ctx context.Context, in *DeleteDictionaryDetailReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteDictionaryDetail", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDistrict(ctx context.Context, in *DistrictCodeReq, opts ...grpc.CallOption) (*DistrictInfo, error) {
	out := new(DistrictInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getDistrict", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDistrictList(ctx context.Context, in *DistrictReq, opts ...grpc.CallOption) (*DistrictListResp, error) {
	out := new(DistrictListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getDistrictList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDistrictTree(ctx context.Context, in *DistrictCodeReq, opts ...grpc.CallOption) (*DistrictTree, error) {
	out := new(DistrictTree)
	err := c.cc.Invoke(ctx, "/core.Core/getDistrictTree", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetDistrictName(ctx context.Context, in *GetDistrictNameReq, opts ...grpc.CallOption) (*GetDistrictNameResp, error) {
	out := new(GetDistrictNameResp)
	err := c.cc.Invoke(ctx, "/core.Core/getDistrictName", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*LoginRecordInfo, error) {
	out := new(LoginRecordInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getRecord", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) Record(ctx context.Context, in *LoginRecordInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/record", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createOauthProvider", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateOauthProvider", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetOauthProviderList(ctx context.Context, in *OauthProviderReq, opts ...grpc.CallOption) (*OauthProviderListResp, error) {
	out := new(OauthProviderListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getOauthProviderList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetOauthProvider(ctx context.Context, in *OauthProviderReq, opts ...grpc.CallOption) (*OauthProviderInfo, error) {
	out := new(OauthProviderInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getOauthProvider", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteOauthProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteOauthProvider", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) OauthLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*OauthRedirectResp, error) {
	out := new(OauthRedirectResp)
	err := c.cc.Invoke(ctx, "/core.Core/oauthLogin", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) OauthCallback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*UserInfo, error) {
	out := new(UserInfo)
	err := c.cc.Invoke(ctx, "/core.Core/oauthCallback", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetRoleList(ctx context.Context, in *RoleReq, opts ...grpc.CallOption) (*RoleListResp, error) {
	out := new(RoleListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getRoleList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetRole(ctx context.Context, in *RoleReq, opts ...grpc.CallOption) (*RoleInfo, error) {
	out := new(RoleInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteRole(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetTokenList(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenListResp, error) {
	out := new(TokenListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getTokenList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetToken(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenInfo, error) {
	out := new(TokenInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteToken(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) BlockUserAllToken(ctx context.Context, in *TokenUserReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/blockUserAllToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetUserList(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserListResp, error) {
	out := new(UserListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getUserList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetUser(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserInfo, error) {
	out := new(UserInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteUser(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteUser", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UserBindRole(ctx context.Context, in *UserRoleReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/userBindRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UserUnbindRole(ctx context.Context, in *UserRoleReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/userUnbindRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UserClearRole(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/userClearRole", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetUserRoles(ctx context.Context, in *GetUserRolesReq, opts ...grpc.CallOption) (*RoleListResp, error) {
	out := new(RoleListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getUserRoles", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) CreateUserSocial(ctx context.Context, in *UserSocialInfo, opts ...grpc.CallOption) (*BaseIDResp, error) {
	out := new(BaseIDResp)
	err := c.cc.Invoke(ctx, "/core.Core/createUserSocial", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) UpdateUserSocial(ctx context.Context, in *UserSocialInfo, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/updateUserSocial", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetUserSocialList(ctx context.Context, in *UserSocialReq, opts ...grpc.CallOption) (*UserSocialListResp, error) {
	out := new(UserSocialListResp)
	err := c.cc.Invoke(ctx, "/core.Core/getUserSocialList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) GetUserSocial(ctx context.Context, in *UserSocialReq, opts ...grpc.CallOption) (*UserSocialInfo, error) {
	out := new(UserSocialInfo)
	err := c.cc.Invoke(ctx, "/core.Core/getUserSocial", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *coreClient) DeleteUserSocial(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error) {
	out := new(BaseResp)
	err := c.cc.Invoke(ctx, "/core.Core/deleteUserSocial", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// CoreServer is the server API for Core service.
// All implementations must embed UnimplementedCoreServer
// for forward compatibility
type CoreServer interface {
	//  group: base
	InitDatabase(context.Context, *Empty) (*BaseResp, error)
	//  Role management
	//  group: department
	CreateDepartment(context.Context, *DepartmentInfo) (*BaseIDResp, error)
	//  group: department
	UpdateDepartment(context.Context, *DepartmentInfo) (*BaseResp, error)
	//  group: department
	GetDepartmentList(context.Context, *DepartmentReq) (*DepartmentListResp, error)
	//  group: department
	GetDepartment(context.Context, *DepartmentReq) (*DepartmentInfo, error)
	//  group: department
	DeleteDepartment(context.Context, *IDsReq) (*BaseResp, error)
	//  Dictionary Management
	//  group: dictionary
	CreateDictionary(context.Context, *DictionaryInfo) (*BaseIDResp, error)
	//  group: dictionary
	UpdateDictionary(context.Context, *DictionaryInfo) (*BaseResp, error)
	//  group: dictionary
	GetDictionaryList(context.Context, *DictionaryReq) (*DictionaryListResp, error)
	//  group: dictionary
	GetDictionary(context.Context, *DictionaryReq) (*DictionaryInfo, error)
	//  group: dictionary
	DeleteDictionary(context.Context, *IDsReq) (*BaseResp, error)
	//  Details
	//  group: dictionary
	CreateDictionaryDetail(context.Context, *DictionaryDetailInfo) (*BaseIDResp, error)
	//  group: dictionary
	UpdateDictionaryDetail(context.Context, *DictionaryDetailInfo) (*BaseResp, error)
	//  group: dictionary
	GetDictionaryDetailList(context.Context, *DictionaryDetailReq) (*DictionaryDetailListResp, error)
	//  group: dictionary
	GetDictionaryDetail(context.Context, *DictionaryDetailReq) (*DictionaryDetailInfo, error)
	//  group: dictionary
	DeleteDictionaryDetail(context.Context, *DeleteDictionaryDetailReq) (*BaseResp, error)
	//  District management
	//  group: district
	GetDistrict(context.Context, *DistrictCodeReq) (*DistrictInfo, error)
	//  group: district
	GetDistrictList(context.Context, *DistrictReq) (*DistrictListResp, error)
	//  group: district
	GetDistrictTree(context.Context, *DistrictCodeReq) (*DistrictTree, error)
	//  group: district
	GetDistrictName(context.Context, *GetDistrictNameReq) (*GetDistrictNameResp, error)
	//  Login Record management
	//  group: login_record
	GetRecord(context.Context, *RecordReq) (*LoginRecordInfo, error)
	//  group: login_record
	Record(context.Context, *LoginRecordInfo) (*BaseResp, error)
	//  OauthProvider management
	//  group: oauth_provider
	CreateOauthProvider(context.Context, *OauthProviderInfo) (*BaseIDResp, error)
	//  group: oauth_provider
	UpdateOauthProvider(context.Context, *OauthProviderInfo) (*BaseResp, error)
	//  group: oauth_provider
	GetOauthProviderList(context.Context, *OauthProviderReq) (*OauthProviderListResp, error)
	//  group: oauth_provider
	GetOauthProvider(context.Context, *OauthProviderReq) (*OauthProviderInfo, error)
	//  group: oauth_provider
	DeleteOauthProvider(context.Context, *IDsReq) (*BaseResp, error)
	//  group: oauth_provider
	OauthLogin(context.Context, *OauthLoginReq) (*OauthRedirectResp, error)
	//  group: oauth_provider
	OauthCallback(context.Context, *CallbackReq) (*UserInfo, error)
	//  Role management
	//  group: role
	CreateRole(context.Context, *RoleInfo) (*BaseIDResp, error)
	//  group: role
	UpdateRole(context.Context, *RoleInfo) (*BaseResp, error)
	//  group: role
	GetRoleList(context.Context, *RoleReq) (*RoleListResp, error)
	//  group: role
	GetRole(context.Context, *RoleReq) (*RoleInfo, error)
	//  group: role
	DeleteRole(context.Context, *IDsReq) (*BaseResp, error)
	//  Token management
	//  group: token
	CreateToken(context.Context, *TokenInfo) (*BaseIDResp, error)
	//  group: token
	UpdateToken(context.Context, *TokenInfo) (*BaseResp, error)
	//  group: token
	GetTokenList(context.Context, *TokenReq) (*TokenListResp, error)
	//  group: token
	GetToken(context.Context, *TokenReq) (*TokenInfo, error)
	//  group: token
	DeleteToken(context.Context, *IDsReq) (*BaseResp, error)
	//  group: token
	BlockUserAllToken(context.Context, *TokenUserReq) (*BaseResp, error)
	//  User Management
	//  group: user
	CreateUser(context.Context, *UserInfo) (*BaseIDResp, error)
	//  group: user
	UpdateUser(context.Context, *UserInfo) (*BaseResp, error)
	//  group: user
	GetUserList(context.Context, *UserReq) (*UserListResp, error)
	//  group: user
	GetUser(context.Context, *UserReq) (*UserInfo, error)
	//  group: user
	DeleteUser(context.Context, *IDsReq) (*BaseResp, error)
	//  User-Role Relationship Management
	//  UserBindRole 用户绑定角色
	//  group: user_role
	UserBindRole(context.Context, *UserRoleReq) (*BaseResp, error)
	//  UserUnbindRole 用户解绑角色
	//  group: user_role
	UserUnbindRole(context.Context, *UserRoleReq) (*BaseResp, error)
	//  UserClearRole 用户清理角色
	//  group: user_role
	UserClearRole(context.Context, *IDReq) (*BaseResp, error)
	//  GetUserRoles 获取用户绑定的角色列表
	//  group: user_role
	GetUserRoles(context.Context, *GetUserRolesReq) (*RoleListResp, error)
	//  User Management
	//  group: user_social
	CreateUserSocial(context.Context, *UserSocialInfo) (*BaseIDResp, error)
	//  group: user_social
	UpdateUserSocial(context.Context, *UserSocialInfo) (*BaseResp, error)
	//  group: user_social
	GetUserSocialList(context.Context, *UserSocialReq) (*UserSocialListResp, error)
	//  group: user_social
	GetUserSocial(context.Context, *UserSocialReq) (*UserSocialInfo, error)
	//  group: user_social
	DeleteUserSocial(context.Context, *IDsReq) (*BaseResp, error)
	mustEmbedUnimplementedCoreServer()
}

// UnimplementedCoreServer must be embedded to have forward compatible implementations.
type UnimplementedCoreServer struct {
}

func (UnimplementedCoreServer) InitDatabase(context.Context, *Empty) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method InitDatabase not implemented")
}
func (UnimplementedCoreServer) CreateDepartment(context.Context, *DepartmentInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateDepartment not implemented")
}
func (UnimplementedCoreServer) UpdateDepartment(context.Context, *DepartmentInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateDepartment not implemented")
}
func (UnimplementedCoreServer) GetDepartmentList(context.Context, *DepartmentReq) (*DepartmentListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDepartmentList not implemented")
}
func (UnimplementedCoreServer) GetDepartment(context.Context, *DepartmentReq) (*DepartmentInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDepartment not implemented")
}
func (UnimplementedCoreServer) DeleteDepartment(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteDepartment not implemented")
}
func (UnimplementedCoreServer) CreateDictionary(context.Context, *DictionaryInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateDictionary not implemented")
}
func (UnimplementedCoreServer) UpdateDictionary(context.Context, *DictionaryInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateDictionary not implemented")
}
func (UnimplementedCoreServer) GetDictionaryList(context.Context, *DictionaryReq) (*DictionaryListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDictionaryList not implemented")
}
func (UnimplementedCoreServer) GetDictionary(context.Context, *DictionaryReq) (*DictionaryInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDictionary not implemented")
}
func (UnimplementedCoreServer) DeleteDictionary(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteDictionary not implemented")
}
func (UnimplementedCoreServer) CreateDictionaryDetail(context.Context, *DictionaryDetailInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateDictionaryDetail not implemented")
}
func (UnimplementedCoreServer) UpdateDictionaryDetail(context.Context, *DictionaryDetailInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateDictionaryDetail not implemented")
}
func (UnimplementedCoreServer) GetDictionaryDetailList(context.Context, *DictionaryDetailReq) (*DictionaryDetailListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDictionaryDetailList not implemented")
}
func (UnimplementedCoreServer) GetDictionaryDetail(context.Context, *DictionaryDetailReq) (*DictionaryDetailInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDictionaryDetail not implemented")
}
func (UnimplementedCoreServer) DeleteDictionaryDetail(context.Context, *DeleteDictionaryDetailReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteDictionaryDetail not implemented")
}
func (UnimplementedCoreServer) GetDistrict(context.Context, *DistrictCodeReq) (*DistrictInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDistrict not implemented")
}
func (UnimplementedCoreServer) GetDistrictList(context.Context, *DistrictReq) (*DistrictListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDistrictList not implemented")
}
func (UnimplementedCoreServer) GetDistrictTree(context.Context, *DistrictCodeReq) (*DistrictTree, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDistrictTree not implemented")
}
func (UnimplementedCoreServer) GetDistrictName(context.Context, *GetDistrictNameReq) (*GetDistrictNameResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDistrictName not implemented")
}
func (UnimplementedCoreServer) GetRecord(context.Context, *RecordReq) (*LoginRecordInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented")
}
func (UnimplementedCoreServer) Record(context.Context, *LoginRecordInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Record not implemented")
}
func (UnimplementedCoreServer) CreateOauthProvider(context.Context, *OauthProviderInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateOauthProvider not implemented")
}
func (UnimplementedCoreServer) UpdateOauthProvider(context.Context, *OauthProviderInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateOauthProvider not implemented")
}
func (UnimplementedCoreServer) GetOauthProviderList(context.Context, *OauthProviderReq) (*OauthProviderListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOauthProviderList not implemented")
}
func (UnimplementedCoreServer) GetOauthProvider(context.Context, *OauthProviderReq) (*OauthProviderInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOauthProvider not implemented")
}
func (UnimplementedCoreServer) DeleteOauthProvider(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteOauthProvider not implemented")
}
func (UnimplementedCoreServer) OauthLogin(context.Context, *OauthLoginReq) (*OauthRedirectResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method OauthLogin not implemented")
}
func (UnimplementedCoreServer) OauthCallback(context.Context, *CallbackReq) (*UserInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method OauthCallback not implemented")
}
func (UnimplementedCoreServer) CreateRole(context.Context, *RoleInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateRole not implemented")
}
func (UnimplementedCoreServer) UpdateRole(context.Context, *RoleInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateRole not implemented")
}
func (UnimplementedCoreServer) GetRoleList(context.Context, *RoleReq) (*RoleListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRoleList not implemented")
}
func (UnimplementedCoreServer) GetRole(context.Context, *RoleReq) (*RoleInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRole not implemented")
}
func (UnimplementedCoreServer) DeleteRole(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteRole not implemented")
}
func (UnimplementedCoreServer) CreateToken(context.Context, *TokenInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented")
}
func (UnimplementedCoreServer) UpdateToken(context.Context, *TokenInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateToken not implemented")
}
func (UnimplementedCoreServer) GetTokenList(context.Context, *TokenReq) (*TokenListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetTokenList not implemented")
}
func (UnimplementedCoreServer) GetToken(context.Context, *TokenReq) (*TokenInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetToken not implemented")
}
func (UnimplementedCoreServer) DeleteToken(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteToken not implemented")
}
func (UnimplementedCoreServer) BlockUserAllToken(context.Context, *TokenUserReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method BlockUserAllToken not implemented")
}
func (UnimplementedCoreServer) CreateUser(context.Context, *UserInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented")
}
func (UnimplementedCoreServer) UpdateUser(context.Context, *UserInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
}
func (UnimplementedCoreServer) GetUserList(context.Context, *UserReq) (*UserListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUserList not implemented")
}
func (UnimplementedCoreServer) GetUser(context.Context, *UserReq) (*UserInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
}
func (UnimplementedCoreServer) DeleteUser(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented")
}
func (UnimplementedCoreServer) UserBindRole(context.Context, *UserRoleReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UserBindRole not implemented")
}
func (UnimplementedCoreServer) UserUnbindRole(context.Context, *UserRoleReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UserUnbindRole not implemented")
}
func (UnimplementedCoreServer) UserClearRole(context.Context, *IDReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UserClearRole not implemented")
}
func (UnimplementedCoreServer) GetUserRoles(context.Context, *GetUserRolesReq) (*RoleListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUserRoles not implemented")
}
func (UnimplementedCoreServer) CreateUserSocial(context.Context, *UserSocialInfo) (*BaseIDResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateUserSocial not implemented")
}
func (UnimplementedCoreServer) UpdateUserSocial(context.Context, *UserSocialInfo) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateUserSocial not implemented")
}
func (UnimplementedCoreServer) GetUserSocialList(context.Context, *UserSocialReq) (*UserSocialListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUserSocialList not implemented")
}
func (UnimplementedCoreServer) GetUserSocial(context.Context, *UserSocialReq) (*UserSocialInfo, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUserSocial not implemented")
}
func (UnimplementedCoreServer) DeleteUserSocial(context.Context, *IDsReq) (*BaseResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteUserSocial not implemented")
}
func (UnimplementedCoreServer) mustEmbedUnimplementedCoreServer() {}

// UnsafeCoreServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CoreServer will
// result in compilation errors.
type UnsafeCoreServer interface {
	mustEmbedUnimplementedCoreServer()
}

func RegisterCoreServer(s grpc.ServiceRegistrar, srv CoreServer) {
	s.RegisterService(&Core_ServiceDesc, srv)
}

func _Core_InitDatabase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).InitDatabase(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/initDatabase",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).InitDatabase(ctx, req.(*Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateDepartment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DepartmentInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateDepartment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createDepartment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateDepartment(ctx, req.(*DepartmentInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateDepartment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DepartmentInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateDepartment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateDepartment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateDepartment(ctx, req.(*DepartmentInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDepartmentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DepartmentReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDepartmentList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDepartmentList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDepartmentList(ctx, req.(*DepartmentReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDepartment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DepartmentReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDepartment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDepartment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDepartment(ctx, req.(*DepartmentReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteDepartment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteDepartment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteDepartment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteDepartment(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateDictionary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateDictionary(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createDictionary",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateDictionary(ctx, req.(*DictionaryInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateDictionary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateDictionary(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateDictionary",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateDictionary(ctx, req.(*DictionaryInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDictionaryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDictionaryList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDictionaryList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDictionaryList(ctx, req.(*DictionaryReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDictionary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDictionary(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDictionary",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDictionary(ctx, req.(*DictionaryReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteDictionary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteDictionary(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteDictionary",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteDictionary(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateDictionaryDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryDetailInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateDictionaryDetail(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createDictionaryDetail",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateDictionaryDetail(ctx, req.(*DictionaryDetailInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateDictionaryDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryDetailInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateDictionaryDetail(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateDictionaryDetail",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateDictionaryDetail(ctx, req.(*DictionaryDetailInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDictionaryDetailList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryDetailReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDictionaryDetailList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDictionaryDetailList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDictionaryDetailList(ctx, req.(*DictionaryDetailReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDictionaryDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DictionaryDetailReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDictionaryDetail(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDictionaryDetail",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDictionaryDetail(ctx, req.(*DictionaryDetailReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteDictionaryDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteDictionaryDetailReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteDictionaryDetail(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteDictionaryDetail",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteDictionaryDetail(ctx, req.(*DeleteDictionaryDetailReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDistrict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DistrictCodeReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDistrict(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDistrict",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDistrict(ctx, req.(*DistrictCodeReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDistrictList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DistrictReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDistrictList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDistrictList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDistrictList(ctx, req.(*DistrictReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDistrictTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DistrictCodeReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDistrictTree(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDistrictTree",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDistrictTree(ctx, req.(*DistrictCodeReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetDistrictName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetDistrictNameReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetDistrictName(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getDistrictName",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetDistrictName(ctx, req.(*GetDistrictNameReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RecordReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetRecord(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getRecord",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetRecord(ctx, req.(*RecordReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_Record_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LoginRecordInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).Record(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/record",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).Record(ctx, req.(*LoginRecordInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateOauthProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OauthProviderInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateOauthProvider(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createOauthProvider",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateOauthProvider(ctx, req.(*OauthProviderInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateOauthProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OauthProviderInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateOauthProvider(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateOauthProvider",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateOauthProvider(ctx, req.(*OauthProviderInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetOauthProviderList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OauthProviderReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetOauthProviderList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getOauthProviderList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetOauthProviderList(ctx, req.(*OauthProviderReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetOauthProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OauthProviderReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetOauthProvider(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getOauthProvider",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetOauthProvider(ctx, req.(*OauthProviderReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteOauthProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteOauthProvider(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteOauthProvider",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteOauthProvider(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_OauthLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OauthLoginReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).OauthLogin(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/oauthLogin",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).OauthLogin(ctx, req.(*OauthLoginReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_OauthCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CallbackReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).OauthCallback(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/oauthCallback",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).OauthCallback(ctx, req.(*CallbackReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RoleInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateRole(ctx, req.(*RoleInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RoleInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateRole(ctx, req.(*RoleInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetRoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RoleReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetRoleList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getRoleList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetRoleList(ctx, req.(*RoleReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RoleReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetRole(ctx, req.(*RoleReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteRole(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TokenInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateToken(ctx, req.(*TokenInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TokenInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateToken(ctx, req.(*TokenInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetTokenList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TokenReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetTokenList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getTokenList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetTokenList(ctx, req.(*TokenReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TokenReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetToken(ctx, req.(*TokenReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteToken(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_BlockUserAllToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TokenUserReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).BlockUserAllToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/blockUserAllToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).BlockUserAllToken(ctx, req.(*TokenUserReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateUser(ctx, req.(*UserInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateUser(ctx, req.(*UserInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetUserList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getUserList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetUserList(ctx, req.(*UserReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetUser(ctx, req.(*UserReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteUser(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteUser",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteUser(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UserBindRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserRoleReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UserBindRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/userBindRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UserBindRole(ctx, req.(*UserRoleReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UserUnbindRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserRoleReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UserUnbindRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/userUnbindRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UserUnbindRole(ctx, req.(*UserRoleReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UserClearRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UserClearRole(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/userClearRole",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UserClearRole(ctx, req.(*IDReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetUserRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetUserRolesReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetUserRoles(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getUserRoles",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetUserRoles(ctx, req.(*GetUserRolesReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_CreateUserSocial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserSocialInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).CreateUserSocial(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/createUserSocial",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).CreateUserSocial(ctx, req.(*UserSocialInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_UpdateUserSocial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserSocialInfo)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).UpdateUserSocial(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/updateUserSocial",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).UpdateUserSocial(ctx, req.(*UserSocialInfo))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetUserSocialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserSocialReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetUserSocialList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getUserSocialList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetUserSocialList(ctx, req.(*UserSocialReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_GetUserSocial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UserSocialReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).GetUserSocial(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/getUserSocial",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).GetUserSocial(ctx, req.(*UserSocialReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Core_DeleteUserSocial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(IDsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CoreServer).DeleteUserSocial(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/core.Core/deleteUserSocial",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CoreServer).DeleteUserSocial(ctx, req.(*IDsReq))
	}
	return interceptor(ctx, in, info, handler)
}

// Core_ServiceDesc is the grpc.ServiceDesc for Core service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Core_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.Core",
	HandlerType: (*CoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "initDatabase",
			Handler:    _Core_InitDatabase_Handler,
		},
		{
			MethodName: "createDepartment",
			Handler:    _Core_CreateDepartment_Handler,
		},
		{
			MethodName: "updateDepartment",
			Handler:    _Core_UpdateDepartment_Handler,
		},
		{
			MethodName: "getDepartmentList",
			Handler:    _Core_GetDepartmentList_Handler,
		},
		{
			MethodName: "getDepartment",
			Handler:    _Core_GetDepartment_Handler,
		},
		{
			MethodName: "deleteDepartment",
			Handler:    _Core_DeleteDepartment_Handler,
		},
		{
			MethodName: "createDictionary",
			Handler:    _Core_CreateDictionary_Handler,
		},
		{
			MethodName: "updateDictionary",
			Handler:    _Core_UpdateDictionary_Handler,
		},
		{
			MethodName: "getDictionaryList",
			Handler:    _Core_GetDictionaryList_Handler,
		},
		{
			MethodName: "getDictionary",
			Handler:    _Core_GetDictionary_Handler,
		},
		{
			MethodName: "deleteDictionary",
			Handler:    _Core_DeleteDictionary_Handler,
		},
		{
			MethodName: "createDictionaryDetail",
			Handler:    _Core_CreateDictionaryDetail_Handler,
		},
		{
			MethodName: "updateDictionaryDetail",
			Handler:    _Core_UpdateDictionaryDetail_Handler,
		},
		{
			MethodName: "getDictionaryDetailList",
			Handler:    _Core_GetDictionaryDetailList_Handler,
		},
		{
			MethodName: "getDictionaryDetail",
			Handler:    _Core_GetDictionaryDetail_Handler,
		},
		{
			MethodName: "deleteDictionaryDetail",
			Handler:    _Core_DeleteDictionaryDetail_Handler,
		},
		{
			MethodName: "getDistrict",
			Handler:    _Core_GetDistrict_Handler,
		},
		{
			MethodName: "getDistrictList",
			Handler:    _Core_GetDistrictList_Handler,
		},
		{
			MethodName: "getDistrictTree",
			Handler:    _Core_GetDistrictTree_Handler,
		},
		{
			MethodName: "getDistrictName",
			Handler:    _Core_GetDistrictName_Handler,
		},
		{
			MethodName: "getRecord",
			Handler:    _Core_GetRecord_Handler,
		},
		{
			MethodName: "record",
			Handler:    _Core_Record_Handler,
		},
		{
			MethodName: "createOauthProvider",
			Handler:    _Core_CreateOauthProvider_Handler,
		},
		{
			MethodName: "updateOauthProvider",
			Handler:    _Core_UpdateOauthProvider_Handler,
		},
		{
			MethodName: "getOauthProviderList",
			Handler:    _Core_GetOauthProviderList_Handler,
		},
		{
			MethodName: "getOauthProvider",
			Handler:    _Core_GetOauthProvider_Handler,
		},
		{
			MethodName: "deleteOauthProvider",
			Handler:    _Core_DeleteOauthProvider_Handler,
		},
		{
			MethodName: "oauthLogin",
			Handler:    _Core_OauthLogin_Handler,
		},
		{
			MethodName: "oauthCallback",
			Handler:    _Core_OauthCallback_Handler,
		},
		{
			MethodName: "createRole",
			Handler:    _Core_CreateRole_Handler,
		},
		{
			MethodName: "updateRole",
			Handler:    _Core_UpdateRole_Handler,
		},
		{
			MethodName: "getRoleList",
			Handler:    _Core_GetRoleList_Handler,
		},
		{
			MethodName: "getRole",
			Handler:    _Core_GetRole_Handler,
		},
		{
			MethodName: "deleteRole",
			Handler:    _Core_DeleteRole_Handler,
		},
		{
			MethodName: "createToken",
			Handler:    _Core_CreateToken_Handler,
		},
		{
			MethodName: "updateToken",
			Handler:    _Core_UpdateToken_Handler,
		},
		{
			MethodName: "getTokenList",
			Handler:    _Core_GetTokenList_Handler,
		},
		{
			MethodName: "getToken",
			Handler:    _Core_GetToken_Handler,
		},
		{
			MethodName: "deleteToken",
			Handler:    _Core_DeleteToken_Handler,
		},
		{
			MethodName: "blockUserAllToken",
			Handler:    _Core_BlockUserAllToken_Handler,
		},
		{
			MethodName: "createUser",
			Handler:    _Core_CreateUser_Handler,
		},
		{
			MethodName: "updateUser",
			Handler:    _Core_UpdateUser_Handler,
		},
		{
			MethodName: "getUserList",
			Handler:    _Core_GetUserList_Handler,
		},
		{
			MethodName: "getUser",
			Handler:    _Core_GetUser_Handler,
		},
		{
			MethodName: "deleteUser",
			Handler:    _Core_DeleteUser_Handler,
		},
		{
			MethodName: "userBindRole",
			Handler:    _Core_UserBindRole_Handler,
		},
		{
			MethodName: "userUnbindRole",
			Handler:    _Core_UserUnbindRole_Handler,
		},
		{
			MethodName: "userClearRole",
			Handler:    _Core_UserClearRole_Handler,
		},
		{
			MethodName: "getUserRoles",
			Handler:    _Core_GetUserRoles_Handler,
		},
		{
			MethodName: "createUserSocial",
			Handler:    _Core_CreateUserSocial_Handler,
		},
		{
			MethodName: "updateUserSocial",
			Handler:    _Core_UpdateUserSocial_Handler,
		},
		{
			MethodName: "getUserSocialList",
			Handler:    _Core_GetUserSocialList_Handler,
		},
		{
			MethodName: "getUserSocial",
			Handler:    _Core_GetUserSocial_Handler,
		},
		{
			MethodName: "deleteUserSocial",
			Handler:    _Core_DeleteUserSocial_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rpc/core/core.proto",
}
