|
@@ -49,11 +49,9 @@ func BankAdd(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
return repo.RepoAddDoc(apictx.CreateRepoCtx(), repo.CollectionBank, &form)
|
|
|
}
|
|
|
|
|
|
+// 客户端调用时。添加query["state"] = 1 query参数 {"state":1}
|
|
|
func BankList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
- // err := IsAdmin(apictx)
|
|
|
- // if err != nil {
|
|
|
- // return nil, err
|
|
|
- // }
|
|
|
+
|
|
|
page, size, query := UtilQueryPageSize(c)
|
|
|
|
|
|
if _name, ok := query["name"]; ok {
|