SystemService.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-tmr-group/module/backend (interfaces: SystemService)
  3. // Package kptservicemock is a generated GoMock package.
  4. package kptservicemock
  5. import (
  6. context "context"
  7. operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
  8. reflect "reflect"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockSystemService is a mock of SystemService interface.
  12. type MockSystemService struct {
  13. ctrl *gomock.Controller
  14. recorder *MockSystemServiceMockRecorder
  15. }
  16. // MockSystemServiceMockRecorder is the mock recorder for MockSystemService.
  17. type MockSystemServiceMockRecorder struct {
  18. mock *MockSystemService
  19. }
  20. // NewMockSystemService creates a new mock instance.
  21. func NewMockSystemService(ctrl *gomock.Controller) *MockSystemService {
  22. mock := &MockSystemService{ctrl: ctrl}
  23. mock.recorder = &MockSystemServiceMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use.
  27. func (m *MockSystemService) EXPECT() *MockSystemServiceMockRecorder {
  28. return m.recorder
  29. }
  30. // Auth mocks base method.
  31. func (m *MockSystemService) Auth(arg0 context.Context, arg1 *operationPb.UserAuthData) (*operationPb.SystemToken, error) {
  32. m.ctrl.T.Helper()
  33. ret := m.ctrl.Call(m, "Auth", arg0, arg1)
  34. ret0, _ := ret[0].(*operationPb.SystemToken)
  35. ret1, _ := ret[1].(error)
  36. return ret0, ret1
  37. }
  38. // Auth indicates an expected call of Auth.
  39. func (mr *MockSystemServiceMockRecorder) Auth(arg0, arg1 interface{}) *gomock.Call {
  40. mr.mock.ctrl.T.Helper()
  41. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Auth", reflect.TypeOf((*MockSystemService)(nil).Auth), arg0, arg1)
  42. }
  43. // CreateSystemMenu mocks base method.
  44. func (m *MockSystemService) CreateSystemMenu(arg0 context.Context, arg1 *operationPb.AddMenuRequest) error {
  45. m.ctrl.T.Helper()
  46. ret := m.ctrl.Call(m, "CreateSystemMenu", arg0, arg1)
  47. ret0, _ := ret[0].(error)
  48. return ret0
  49. }
  50. // CreateSystemMenu indicates an expected call of CreateSystemMenu.
  51. func (mr *MockSystemServiceMockRecorder) CreateSystemMenu(arg0, arg1 interface{}) *gomock.Call {
  52. mr.mock.ctrl.T.Helper()
  53. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSystemMenu", reflect.TypeOf((*MockSystemService)(nil).CreateSystemMenu), arg0, arg1)
  54. }
  55. // CreateSystemRole mocks base method.
  56. func (m *MockSystemService) CreateSystemRole(arg0 context.Context, arg1 *operationPb.AddRoleRequest) error {
  57. m.ctrl.T.Helper()
  58. ret := m.ctrl.Call(m, "CreateSystemRole", arg0, arg1)
  59. ret0, _ := ret[0].(error)
  60. return ret0
  61. }
  62. // CreateSystemRole indicates an expected call of CreateSystemRole.
  63. func (mr *MockSystemServiceMockRecorder) CreateSystemRole(arg0, arg1 interface{}) *gomock.Call {
  64. mr.mock.ctrl.T.Helper()
  65. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSystemRole", reflect.TypeOf((*MockSystemService)(nil).CreateSystemRole), arg0, arg1)
  66. }
  67. // CreateSystemUser mocks base method.
  68. func (m *MockSystemService) CreateSystemUser(arg0 context.Context, arg1 *operationPb.AddSystemUser) error {
  69. m.ctrl.T.Helper()
  70. ret := m.ctrl.Call(m, "CreateSystemUser", arg0, arg1)
  71. ret0, _ := ret[0].(error)
  72. return ret0
  73. }
  74. // CreateSystemUser indicates an expected call of CreateSystemUser.
  75. func (mr *MockSystemServiceMockRecorder) CreateSystemUser(arg0, arg1 interface{}) *gomock.Call {
  76. mr.mock.ctrl.T.Helper()
  77. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSystemUser", reflect.TypeOf((*MockSystemService)(nil).CreateSystemUser), arg0, arg1)
  78. }
  79. // DeleteSystemMenu mocks base method.
  80. func (m *MockSystemService) DeleteSystemMenu(arg0 context.Context, arg1 int64) error {
  81. m.ctrl.T.Helper()
  82. ret := m.ctrl.Call(m, "DeleteSystemMenu", arg0, arg1)
  83. ret0, _ := ret[0].(error)
  84. return ret0
  85. }
  86. // DeleteSystemMenu indicates an expected call of DeleteSystemMenu.
  87. func (mr *MockSystemServiceMockRecorder) DeleteSystemMenu(arg0, arg1 interface{}) *gomock.Call {
  88. mr.mock.ctrl.T.Helper()
  89. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSystemMenu", reflect.TypeOf((*MockSystemService)(nil).DeleteSystemMenu), arg0, arg1)
  90. }
  91. // DeleteSystemRole mocks base method.
  92. func (m *MockSystemService) DeleteSystemRole(arg0 context.Context, arg1 int64) error {
  93. m.ctrl.T.Helper()
  94. ret := m.ctrl.Call(m, "DeleteSystemRole", arg0, arg1)
  95. ret0, _ := ret[0].(error)
  96. return ret0
  97. }
  98. // DeleteSystemRole indicates an expected call of DeleteSystemRole.
  99. func (mr *MockSystemServiceMockRecorder) DeleteSystemRole(arg0, arg1 interface{}) *gomock.Call {
  100. mr.mock.ctrl.T.Helper()
  101. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSystemRole", reflect.TypeOf((*MockSystemService)(nil).DeleteSystemRole), arg0, arg1)
  102. }
  103. // DeleteSystemUser mocks base method.
  104. func (m *MockSystemService) DeleteSystemUser(arg0 context.Context, arg1 int64) error {
  105. m.ctrl.T.Helper()
  106. ret := m.ctrl.Call(m, "DeleteSystemUser", arg0, arg1)
  107. ret0, _ := ret[0].(error)
  108. return ret0
  109. }
  110. // DeleteSystemUser indicates an expected call of DeleteSystemUser.
  111. func (mr *MockSystemServiceMockRecorder) DeleteSystemUser(arg0, arg1 interface{}) *gomock.Call {
  112. mr.mock.ctrl.T.Helper()
  113. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSystemUser", reflect.TypeOf((*MockSystemService)(nil).DeleteSystemUser), arg0, arg1)
  114. }
  115. // DetailsSystemUser mocks base method.
  116. func (m *MockSystemService) DetailsSystemUser(arg0 context.Context, arg1 int64) (*operationPb.UserDetails, error) {
  117. m.ctrl.T.Helper()
  118. ret := m.ctrl.Call(m, "DetailsSystemUser", arg0, arg1)
  119. ret0, _ := ret[0].(*operationPb.UserDetails)
  120. ret1, _ := ret[1].(error)
  121. return ret0, ret1
  122. }
  123. // DetailsSystemUser indicates an expected call of DetailsSystemUser.
  124. func (mr *MockSystemServiceMockRecorder) DetailsSystemUser(arg0, arg1 interface{}) *gomock.Call {
  125. mr.mock.ctrl.T.Helper()
  126. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetailsSystemUser", reflect.TypeOf((*MockSystemService)(nil).DetailsSystemUser), arg0, arg1)
  127. }
  128. // EditSystemMenu mocks base method.
  129. func (m *MockSystemService) EditSystemMenu(arg0 context.Context, arg1 *operationPb.AddMenuRequest) error {
  130. m.ctrl.T.Helper()
  131. ret := m.ctrl.Call(m, "EditSystemMenu", arg0, arg1)
  132. ret0, _ := ret[0].(error)
  133. return ret0
  134. }
  135. // EditSystemMenu indicates an expected call of EditSystemMenu.
  136. func (mr *MockSystemServiceMockRecorder) EditSystemMenu(arg0, arg1 interface{}) *gomock.Call {
  137. mr.mock.ctrl.T.Helper()
  138. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditSystemMenu", reflect.TypeOf((*MockSystemService)(nil).EditSystemMenu), arg0, arg1)
  139. }
  140. // EditSystemRole mocks base method.
  141. func (m *MockSystemService) EditSystemRole(arg0 context.Context, arg1 *operationPb.AddRoleRequest) error {
  142. m.ctrl.T.Helper()
  143. ret := m.ctrl.Call(m, "EditSystemRole", arg0, arg1)
  144. ret0, _ := ret[0].(error)
  145. return ret0
  146. }
  147. // EditSystemRole indicates an expected call of EditSystemRole.
  148. func (mr *MockSystemServiceMockRecorder) EditSystemRole(arg0, arg1 interface{}) *gomock.Call {
  149. mr.mock.ctrl.T.Helper()
  150. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditSystemRole", reflect.TypeOf((*MockSystemService)(nil).EditSystemRole), arg0, arg1)
  151. }
  152. // EditSystemUser mocks base method.
  153. func (m *MockSystemService) EditSystemUser(arg0 context.Context, arg1 *operationPb.AddSystemUser) error {
  154. m.ctrl.T.Helper()
  155. ret := m.ctrl.Call(m, "EditSystemUser", arg0, arg1)
  156. ret0, _ := ret[0].(error)
  157. return ret0
  158. }
  159. // EditSystemUser indicates an expected call of EditSystemUser.
  160. func (mr *MockSystemServiceMockRecorder) EditSystemUser(arg0, arg1 interface{}) *gomock.Call {
  161. mr.mock.ctrl.T.Helper()
  162. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditSystemUser", reflect.TypeOf((*MockSystemService)(nil).EditSystemUser), arg0, arg1)
  163. }
  164. // GetCurrentUserName mocks base method.
  165. func (m *MockSystemService) GetCurrentUserName(arg0 context.Context) (string, error) {
  166. m.ctrl.T.Helper()
  167. ret := m.ctrl.Call(m, "GetCurrentUserName", arg0)
  168. ret0, _ := ret[0].(string)
  169. ret1, _ := ret[1].(error)
  170. return ret0, ret1
  171. }
  172. // GetCurrentUserName indicates an expected call of GetCurrentUserName.
  173. func (mr *MockSystemServiceMockRecorder) GetCurrentUserName(arg0 interface{}) *gomock.Call {
  174. mr.mock.ctrl.T.Helper()
  175. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentUserName", reflect.TypeOf((*MockSystemService)(nil).GetCurrentUserName), arg0)
  176. }
  177. // GetRolePermissions mocks base method.
  178. func (m *MockSystemService) GetRolePermissions(arg0 context.Context, arg1 int64) (*operationPb.RolePermissionsList, error) {
  179. m.ctrl.T.Helper()
  180. ret := m.ctrl.Call(m, "GetRolePermissions", arg0, arg1)
  181. ret0, _ := ret[0].(*operationPb.RolePermissionsList)
  182. ret1, _ := ret[1].(error)
  183. return ret0, ret1
  184. }
  185. // GetRolePermissions indicates an expected call of GetRolePermissions.
  186. func (mr *MockSystemServiceMockRecorder) GetRolePermissions(arg0, arg1 interface{}) *gomock.Call {
  187. mr.mock.ctrl.T.Helper()
  188. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRolePermissions", reflect.TypeOf((*MockSystemService)(nil).GetRolePermissions), arg0, arg1)
  189. }
  190. // GetSystemUserPermissions mocks base method.
  191. func (m *MockSystemService) GetSystemUserPermissions(arg0 context.Context, arg1 string) (*operationPb.SystemUserMenuPermissions, error) {
  192. m.ctrl.T.Helper()
  193. ret := m.ctrl.Call(m, "GetSystemUserPermissions", arg0, arg1)
  194. ret0, _ := ret[0].(*operationPb.SystemUserMenuPermissions)
  195. ret1, _ := ret[1].(error)
  196. return ret0, ret1
  197. }
  198. // GetSystemUserPermissions indicates an expected call of GetSystemUserPermissions.
  199. func (mr *MockSystemServiceMockRecorder) GetSystemUserPermissions(arg0, arg1 interface{}) *gomock.Call {
  200. mr.mock.ctrl.T.Helper()
  201. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSystemUserPermissions", reflect.TypeOf((*MockSystemService)(nil).GetSystemUserPermissions), arg0, arg1)
  202. }
  203. // GetUserInfo mocks base method.
  204. func (m *MockSystemService) GetUserInfo(arg0 context.Context, arg1 string) (*operationPb.UserAuth, error) {
  205. m.ctrl.T.Helper()
  206. ret := m.ctrl.Call(m, "GetUserInfo", arg0, arg1)
  207. ret0, _ := ret[0].(*operationPb.UserAuth)
  208. ret1, _ := ret[1].(error)
  209. return ret0, ret1
  210. }
  211. // GetUserInfo indicates an expected call of GetUserInfo.
  212. func (mr *MockSystemServiceMockRecorder) GetUserInfo(arg0, arg1 interface{}) *gomock.Call {
  213. mr.mock.ctrl.T.Helper()
  214. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserInfo", reflect.TypeOf((*MockSystemService)(nil).GetUserInfo), arg0, arg1)
  215. }
  216. // IsShowSystemMenu mocks base method.
  217. func (m *MockSystemService) IsShowSystemMenu(arg0 context.Context, arg1 *operationPb.IsShowSystemMenuRequest) error {
  218. m.ctrl.T.Helper()
  219. ret := m.ctrl.Call(m, "IsShowSystemMenu", arg0, arg1)
  220. ret0, _ := ret[0].(error)
  221. return ret0
  222. }
  223. // IsShowSystemMenu indicates an expected call of IsShowSystemMenu.
  224. func (mr *MockSystemServiceMockRecorder) IsShowSystemMenu(arg0, arg1 interface{}) *gomock.Call {
  225. mr.mock.ctrl.T.Helper()
  226. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowSystemMenu", reflect.TypeOf((*MockSystemService)(nil).IsShowSystemMenu), arg0, arg1)
  227. }
  228. // IsShowSystemUser mocks base method.
  229. func (m *MockSystemService) IsShowSystemUser(arg0 context.Context, arg1 *operationPb.IsShowSystemUserRequest) error {
  230. m.ctrl.T.Helper()
  231. ret := m.ctrl.Call(m, "IsShowSystemUser", arg0, arg1)
  232. ret0, _ := ret[0].(error)
  233. return ret0
  234. }
  235. // IsShowSystemUser indicates an expected call of IsShowSystemUser.
  236. func (mr *MockSystemServiceMockRecorder) IsShowSystemUser(arg0, arg1 interface{}) *gomock.Call {
  237. mr.mock.ctrl.T.Helper()
  238. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowSystemUser", reflect.TypeOf((*MockSystemService)(nil).IsShowSystemUser), arg0, arg1)
  239. }
  240. // ResetPasswordSystemUser mocks base method.
  241. func (m *MockSystemService) ResetPasswordSystemUser(arg0 context.Context, arg1 int64) error {
  242. m.ctrl.T.Helper()
  243. ret := m.ctrl.Call(m, "ResetPasswordSystemUser", arg0, arg1)
  244. ret0, _ := ret[0].(error)
  245. return ret0
  246. }
  247. // ResetPasswordSystemUser indicates an expected call of ResetPasswordSystemUser.
  248. func (mr *MockSystemServiceMockRecorder) ResetPasswordSystemUser(arg0, arg1 interface{}) *gomock.Call {
  249. mr.mock.ctrl.T.Helper()
  250. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetPasswordSystemUser", reflect.TypeOf((*MockSystemService)(nil).ResetPasswordSystemUser), arg0, arg1)
  251. }
  252. // SearchMobileList mocks base method.
  253. func (m *MockSystemService) SearchMobileList(arg0 context.Context, arg1 *operationPb.SearchMobileRequest) (*operationPb.SearchMobileResponse, error) {
  254. m.ctrl.T.Helper()
  255. ret := m.ctrl.Call(m, "SearchMobileList", arg0, arg1)
  256. ret0, _ := ret[0].(*operationPb.SearchMobileResponse)
  257. ret1, _ := ret[1].(error)
  258. return ret0, ret1
  259. }
  260. // SearchMobileList indicates an expected call of SearchMobileList.
  261. func (mr *MockSystemServiceMockRecorder) SearchMobileList(arg0, arg1 interface{}) *gomock.Call {
  262. mr.mock.ctrl.T.Helper()
  263. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchMobileList", reflect.TypeOf((*MockSystemService)(nil).SearchMobileList), arg0, arg1)
  264. }
  265. // SearchSystemMenuList mocks base method.
  266. func (m *MockSystemService) SearchSystemMenuList(arg0 context.Context, arg1 *operationPb.SearchMenuRequest) (*operationPb.SearchMenuResponse, error) {
  267. m.ctrl.T.Helper()
  268. ret := m.ctrl.Call(m, "SearchSystemMenuList", arg0, arg1)
  269. ret0, _ := ret[0].(*operationPb.SearchMenuResponse)
  270. ret1, _ := ret[1].(error)
  271. return ret0, ret1
  272. }
  273. // SearchSystemMenuList indicates an expected call of SearchSystemMenuList.
  274. func (mr *MockSystemServiceMockRecorder) SearchSystemMenuList(arg0, arg1 interface{}) *gomock.Call {
  275. mr.mock.ctrl.T.Helper()
  276. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchSystemMenuList", reflect.TypeOf((*MockSystemService)(nil).SearchSystemMenuList), arg0, arg1)
  277. }
  278. // SearchSystemRoleList mocks base method.
  279. func (m *MockSystemService) SearchSystemRoleList(arg0 context.Context, arg1 *operationPb.SearchRoleRequest) (*operationPb.SearchRoleResponse, error) {
  280. m.ctrl.T.Helper()
  281. ret := m.ctrl.Call(m, "SearchSystemRoleList", arg0, arg1)
  282. ret0, _ := ret[0].(*operationPb.SearchRoleResponse)
  283. ret1, _ := ret[1].(error)
  284. return ret0, ret1
  285. }
  286. // SearchSystemRoleList indicates an expected call of SearchSystemRoleList.
  287. func (mr *MockSystemServiceMockRecorder) SearchSystemRoleList(arg0, arg1 interface{}) *gomock.Call {
  288. mr.mock.ctrl.T.Helper()
  289. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchSystemRoleList", reflect.TypeOf((*MockSystemService)(nil).SearchSystemRoleList), arg0, arg1)
  290. }
  291. // SearchSystemUserList mocks base method.
  292. func (m *MockSystemService) SearchSystemUserList(arg0 context.Context, arg1 *operationPb.SearchUserRequest) (*operationPb.SearchUserResponse, error) {
  293. m.ctrl.T.Helper()
  294. ret := m.ctrl.Call(m, "SearchSystemUserList", arg0, arg1)
  295. ret0, _ := ret[0].(*operationPb.SearchUserResponse)
  296. ret1, _ := ret[1].(error)
  297. return ret0, ret1
  298. }
  299. // SearchSystemUserList indicates an expected call of SearchSystemUserList.
  300. func (mr *MockSystemServiceMockRecorder) SearchSystemUserList(arg0, arg1 interface{}) *gomock.Call {
  301. mr.mock.ctrl.T.Helper()
  302. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchSystemUserList", reflect.TypeOf((*MockSystemService)(nil).SearchSystemUserList), arg0, arg1)
  303. }