package supplier import ( "context" "git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/lib/bean" ) type supplierApply struct { } type ArgsSupplierApplyLists struct { Search SupplierApplySearch Page bean.Page } type SupplierApplySearch struct { SupplierName string AuditStatus uint ApplyUserId uint } type ReplySupplierApplyLists struct { Lists []SupplierApplyItem Total int64 } type SupplierApplyItem struct { ApplyId uint SupplierName string // 供应商名称 ApplyUserId uint // 申请人 AuditStatus uint // 审核状态 AuditUserId uint // 审核人 AuditTime int64 // 审核时间 CreatedAt int64 // 申请时间 } // Lists @Title 审核列表 func (s *supplierApply) Lists(ctx context.Context, args ArgsSupplierApplyLists) (reply ReplySupplierApplyLists, err error) { xClient, err := client.GetClient(s) if err != nil { return ReplySupplierApplyLists{}, err } err = xClient.Call(ctx, "Lists", args, &reply) return }