This commit is contained in:
wyt 2023-02-15 09:39:14 +08:00
parent 2bf9220ec5
commit 42f52e4f25
19 changed files with 2365 additions and 1418 deletions

View File

@ -21,7 +21,14 @@ func (a *ArtistInfoProvider) RegisterUser(ctx context.Context, req *artistinfo.R
}
return rep, nil
}
func (a *ArtistInfoProvider) CreateUserInfo(ctx context.Context, req *artistinfo.CreateUserInfoRequest) (rep *artistinfo.CreateUserInfoRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.GetUserInfoRespond{}
if rep, err = a.artistInfoLogic.CreateUserInfo(req); err != nil {
return nil, err
}
return rep, nil
}
func (a *ArtistInfoProvider) GetUser(ctx context.Context, req *artistinfo.GetUserRequest) (rep *artistinfo.GetUserRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.GetUserInfoRespond{}
@ -30,7 +37,14 @@ func (a *ArtistInfoProvider) GetUser(ctx context.Context, req *artistinfo.GetUse
}
return rep, nil
}
func (a *ArtistInfoProvider) GetUserById(ctx context.Context, req *artistinfo.GetUserByIdRequest) (rep *artistinfo.GetUserByIdRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.GetUserInfoRespond{}
if rep, err = a.artistInfoLogic.GetUserById(req); err != nil {
return nil, err
}
return rep, nil
}
func (a *ArtistInfoProvider) UpdateRealName(ctx context.Context, req *artistinfo.UpdateRealNameRequest) (rep *artistinfo.UpdateRealNameRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.GetUserInfoRespond{}
@ -66,3 +80,30 @@ func (a *ArtistInfoProvider) ArtistSupplyList(ctx context.Context, req *artistin
}
return rep, nil
}
func (a *ArtistInfoProvider) CheckInvitedCode(ctx context.Context, req *artistinfo.CheckInvitedCodeRequest) (rep *artistinfo.GetUserRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.CheckInvitedCodeInfoRespond{}
if rep, err = a.artistInfoLogic.CheckInvitedCode(req); err != nil {
return nil, err
}
return rep, nil
}
func (a *ArtistInfoProvider) UnFinishList(ctx context.Context, req *artistinfo.UnFinishListRequest) (rep *artistinfo.UnFinishListRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.UnFinishListInfoRespond{}
if rep, err = a.artistInfoLogic.UnFinishList(req); err != nil {
return nil, err
}
return rep, nil
}
func (a *ArtistInfoProvider) GetUserMsg(ctx context.Context, req *artistinfo.GetUserMsgRequest) (rep *artistinfo.GetUserMsgRespond, err error) {
fmt.Println("第一处")
// backup := &artistInfo.GetUserMsgInfoRespond{}
if rep, err = a.artistInfoLogic.GetUserMsg(req); err != nil {
return nil, err
}
return rep, nil
}

View File

@ -1,12 +1,17 @@
package dao
import (
"encoding/json"
"errors"
"fmt"
"time"
"github.com/alibaba/sentinel-golang/logging"
"github.com/fonchain/fonchain-artistinfo/cmd/model"
"github.com/fonchain/fonchain-artistinfo/pb/artistinfo"
db "github.com/fonchain/fonchain-artistinfo/pkg/db"
"github.com/fonchain/fonchain-artistinfo/pkg/m"
"github.com/fonchain/utils/utils"
"go.uber.org/zap"
)
@ -23,21 +28,162 @@ func RegisterUser(req *artistinfo.RegisterUserRequest) (rep *artistinfo.Register
return
}
func CreateUserInfo(req *artistinfo.CreateUserInfoRequest) (rep *artistinfo.CreateUserInfoRespond, err error) {
var user model.User
//找到用户
fmt.Println("req.Id:", req.Id)
fmt.Println("第三处")
err = db.DB.Where("id = ?", req.Id).First(&user).Error
if err != nil {
fmt.Println("第四处")
fmt.Println(err.Error())
zap.L().Error("CreateUserInfo err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
fmt.Println(11)
var realNameFind model.RealName
err = db.DB.Where("id_num = ?", req.IdCard).First(&realNameFind).Error
if err == nil {
fmt.Println("第五处")
fmt.Println(12)
if realNameFind.ID != 0 {
fmt.Println("第六处")
zap.L().Error("register user err", zap.Error(err))
err = errors.New("此身份证已实名认证")
return nil, err
}
}
fmt.Println("第四处")
fmt.Println(12)
var realname = model.RealName{
Name: req.RealName,
IDNum: req.IdCard,
TelNum: req.TelNum,
IdcardFront: req.IdCardFront,
IdcardBack: req.IdCardBack,
}
err = db.DB.Save(&realname).Error
if err != nil {
fmt.Println("第九处")
zap.L().Error("CreateUserInfo err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
fmt.Println(13)
err = db.DB.Where("id_num=?", realname.IDNum).First(&realname).Error
if err != nil {
zap.L().Error("CreateUserInfo err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
fmt.Println(14)
user.ID = req.Id
user.Name = req.RealName
user.PenName = req.PenName
user.RealNameID = int32(realname.ID)
user.StageName = req.StageName
user.Age = int32(utils.IdCardTurnAge(realname.IDNum))
user.Sex = req.Sex
user.JoinAssoTime = req.JoinAssoTime
user.CertificateNum = req.CertificateNum
conAddessByte, err := json.Marshal(req.ConAddress)
if err != nil {
zap.L().Error("CreateUserInfo err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
user.ConAddress = string(conAddessByte)
user.CreateAt = time.Now().Unix()
user.Photo = req.Photo
user.WxAccount = req.WxAccount
user.CertificateImg = req.CertificateImg
user.Video = req.Video
user.IsRealName = 1
var invite model.Invite
err = db.DB.Where("user_id = ?", user.ID).First(&invite).Error
if err != nil {
logging.Info(err.Error())
if err.Error() == "record not found" {
} else {
zap.L().Error("CreateUserInfo err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
}
if invite.ID == 0 {
InvitedId, err := CheckInvitedCodes(req.InvitedCode)
if err == nil {
var invite InviteService
invite.UserId = uint(req.Id)
invite.InvitedId = InvitedId
Createinvite(invite)
}
}
fmt.Printf("%+v\n", user)
user.ID = req.Id
err = db.DB.Save(&user).Error
if err != nil {
zap.L().Error("CreateUserInfo err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
return
}
type InvitedCodeService struct {
InvitedCode string `form:"invitedCode" json:"invitedCode"`
}
type InviteService struct {
Id uint `json:"id"`
UserId uint `form:"userId" json:"userId"`
InvitedId uint `form:"invitedId" json:"invitedId"`
}
func Createinvite(service InviteService) {
var invite model.Invite
invite.UserId = int32(service.UserId)
invite.InvitedId = int32(service.InvitedId)
db.DB.Create(&invite)
}
func CheckInvitedCodes(invitedCode string) (uint, error) {
var user model.User
//找到用户
if err := db.DB.Where("invited_code =?", invitedCode).Find(&user).Error; err != nil {
return 0, err
}
if user.ID == 0 {
return 0, errors.New("邀请码无效")
}
return uint(user.ID), nil
}
func GetUser(req *artistinfo.GetUserRequest) (rep *artistinfo.GetUserRespond, err error) {
rep = &artistinfo.GetUserRespond{}
// service := &artist.UserUpdateInfoService{}
var user model.User
if err = db.DB.First(&user, "tel_num = ?", req.TelNum).Error; err != nil {
if err = db.DB.Where("tel_num = ?", req.TelNum).First(&user).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
// rep.
fmt.Println(user)
rep.Id = user.ID
rep.MgmtUserId = user.MgmtUserId
rep.MgmtArtistId = user.MgmtArtistId
rep.TelNum = user.TelNum
rep.IsFdd = user.IsFdd
rep.IsFdd = user.FddState
rep.IsRealName = user.IsRealName
rep.Ruler = user.Ruler
// service.QrCodeImg = fmt.Sprintf("https://cdn.fontree.cn/artistmgmt/static/qrcode/%v.png", user.InvitedCode)
@ -49,19 +195,29 @@ func GetUser(req *artistinfo.GetUserRequest) (rep *artistinfo.GetUserRespond, er
func GetUserById(req *artistinfo.GetUserByIdRequest) (rep *artistinfo.GetUserByIdRespond, err error) {
rep = &artistinfo.GetUserByIdRespond{}
fmt.Println("id:", req.Id)
fmt.Println("123")
zap.L().Info("!!!!")
fmt.Println("456")
// service := &artist.UserUpdateInfoService{}
var user model.User
if err = db.DB.First(&user, "id = ?", req.Id).Error; err != nil {
fmt.Println("666")
if err = db.DB.Where("id = ?", req.Id).First(&user).Error; err != nil {
zap.L().Info("!!!!3")
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
return
}
fmt.Printf("%+v\n", user)
fmt.Println("6666")
zap.L().Info("!!!!5")
// rep.
fmt.Println("777")
rep.Id = user.ID
rep.MgmtUserId = user.MgmtUserId
rep.MgmtArtistId = user.MgmtArtistId
rep.TelNum = user.TelNum
rep.IsFdd = user.IsFdd
rep.IsFdd = user.FddState
rep.IsRealName = user.IsRealName
rep.Ruler = user.Ruler
return rep, nil
@ -161,339 +317,111 @@ func UserLock(req *artistinfo.UserLockRequest) (rep *artistinfo.UserLockRespond,
return rep, nil
}
// // Update 用户修改信息
// func Create(reqs *artist.CreateUserInfoRequest) (rep *artist.CreateUserInfoRespond, err error) {
// req := reqs.Data
// rep = &artist.CreateUserInfoRespond{}
// data := &artist.User{}
// // user := rep.User
// var user model.User
// // user := rep.User
// if err = db.DB.First(&user, "id = ?", int32(reqs.Id)).Error; err != nil {
// //数据库操作异常
// zap.L().Error("get user info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return nil, err
// }
func CheckInvitedCode(req *artistinfo.CheckInvitedCodeRequest) (rep *artistinfo.GetUserRespond, err error) {
rep = &artistinfo.GetUserRespond{}
// service := &artist.UserUpdateInfoService{}
var user model.User
if err = db.DB.First(&user, "invited_code = ?", req.InvitedCode).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
// rep.
rep.Id = user.ID
rep.MgmtUserId = user.MgmtUserId
rep.MgmtArtistId = user.MgmtArtistId
rep.TelNum = user.TelNum
rep.IsFdd = user.IsFdd
rep.IsRealName = user.IsRealName
rep.Ruler = user.Ruler
// service.QrCodeImg = fmt.Sprintf("https://cdn.fontree.cn/artistmgmt/static/qrcode/%v.png", user.InvitedCode)
// var realNameFind model.RealName
// if err = db.DB.First(&realNameFind, "id_num = ?", req.IdCard).Error; err != nil {
// zap.L().Error("get realName info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return nil, err
// } else {
// if realNameFind.ID != 0 {
// return nil, errors.New(m.ERROR_ALREADY_AUTH)
// }
// }
// service.QrCodeImgDownload = fmt.Sprintf("https://cdn.fontree.cn/artistmgmt/static/qrcode/%v-2.png", user.InvitedCode)
// rep.Data = service
return rep, nil
}
// var realname = model.RealName{
// Name: req.RealName,
// IDNum: req.IdCard,
// TelNum: req.TelNum,
// IdcardFront: req.IdCardFront,
// IdcardBack: req.IdCardBack,
// }
// if err = db.DB.Save(&realname).Error; err != nil {
// zap.L().Error("save realName info err", zap.Error(err))
// err = errors.New(m.SAVE_ERROR)
// return nil, err
// }
func UnFinishList(req *artistinfo.UnFinishListRequest) (rep *artistinfo.UnFinishListRespond, err error) {
rep = &artistinfo.UnFinishListRespond{}
var user model.User
if err := db.DB.Where("id = ? ", req.Id).First(&user).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
// if err = db.DB.First(&realname, "id_num=?", realname.IDNum).Error; err != nil {
// zap.L().Error("get realName info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return nil, err
// }
}
var realName model.RealName
if err := db.DB.Where("id = ? ", user.RealNameID).First(&realName).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
var contract model.Contract
var contractCount int64
if err := db.DB.Model(&contract).Where("state = ? and (user_id = ? or card_id = ?) and (type =1 or type = 2 or type = 3)", "1", user.ID, realName.IDNum).Count(&contractCount).Error; err != nil {
err = errors.New(m.ERROR_SELECT)
return nil, err
}
rep.ContractList = contractCount
var accountStateCount int64
fmt.Println(realName.IDNum)
if err := db.DB.Model(&contract).Where("state = ? and (user_id = ? or card_id = ?) and type = 4", "1", user.ID, realName.IDNum).Count(&accountStateCount).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
rep.AccountStateList = accountStateCount
var supplyInfo model.SupplyInfo
var supplyInfoCount int64
if err := db.DB.Model(&supplyInfo).Where("types = ? and user_id = ? ", "1", user.ID).Count(&supplyInfoCount).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
rep.SupplyInfoList += supplyInfoCount
var exhVideo model.ExhVideo
var exhVideoCount int64
if err := db.DB.Model(&exhVideo).Where("types = ? and user_id = ? ", "1", user.ID).Count(&exhVideoCount).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
rep.SupplyInfoList += exhVideoCount
var exhExam model.ExhExam
var exhExamCount int64
if err := db.DB.Model(&exhExam).Where("types = ? and user_id = ? ", "1", user.ID).Count(&exhExamCount).Error; err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
rep.SupplyInfoList += exhExamCount
// // user.ID = int32(reqs.Id)
// user.Name = req.RealName
// user.PenName = req.PenName
// user.RealNameID = int32(realname.ID)
// user.StageName = req.StageName
// user.Age = int32(util.IdCardTurnAge(realname.IDNum))
// user.Sex = int32(req.Sex)
// user.JoinAssoTime = req.JoinAssoTime
// user.CertificateNum = req.CertificateNum
// conAddessByte, err := json.Marshal(req.ConAddress)
// if err != nil {
// zap.L().Error("conAddress marshal err", zap.Error(err))
// err = errors.New(m.ERROR_MARSHAL)
// return nil, err
// }
return rep, nil
}
// user.ConAddress = string(conAddessByte)
// user.CreateAt = time.Now().Unix()
// user.Photo = req.Photo
// user.WxAccount = req.WxAccount
// user.CertificateImg = req.CertificateImg
// user.Video = req.Video
// // user.IsRealName = true
// var invite model.Invite
// if err = db.DB.Where("user_id = ?", user.ID).First(&invite).Error; err != nil {
// zap.L().Error("get invite info err", zap.Error(err))
// if err.Error() == "record not found" {
// } else {
// err = errors.New(m.SAVE_ERROR)
// return nil, err
// }
// }
func GetUserMsg(req *artistinfo.GetUserMsgRequest) (rep *artistinfo.GetUserMsgRespond, err error) {
var user model.User
// if invite.ID == 0 {
// res, err := CheckInvitedCode(req.InvitedCode)
// if err != nil {
// Createinvite(user.ID, res.ID)
// }
// }
// user.ID = int32(reqs.Id)
// if err = db.DB.Save(user).Error; err != nil {
// zap.L().Error("save user info err", zap.Error(err))
// err = errors.New(m.SAVE_ERROR)
// return nil, err
// }
// copyOpt := util.CopyOption{
// Src: &user,
// Dst: data,
// }
// util.CopyStructSuper(copyOpt)
// rep.User = data
// return rep, nil
// }
// // Get 用户修改信息
// func GetUserInfoSelf(id int64) (rep *model.UserUpdateInfoService, err error) {
// rep = &model.UserUpdateInfoService{}
// var user model.User
// if err = db.DB.First(&user, "id = ?", int32(id)).Error; err != nil {
// zap.L().Error("get user info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// var realName model.RealName
// if err = db.DB.First(&realName, "id = ?", user.RealNameID).Error; err != nil {
// zap.L().Error("get realName info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// var artworkList []model.Artwork
// if err = db.DB.Where("artist_id = ? ", uint(id)).Find(&artworkList).Error; err != nil {
// zap.L().Error("get artworkList info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// for _, v := range artworkList {
// if v.State == 3 {
// rep.Ruler = rep.Ruler + int32(v.Ruler)
// }
// }
// rep.TelNum = user.TelNum
// rep.CertificateNum = user.CertificateNum
// if user.CertificateImg != "" {
// rep.CertificateImg = fmt.Sprintf("%v?v=%d", user.CertificateImg, user.UpdatedAt.Unix())
// }
// rep.RealName = realName.Name
// rep.PenName = user.PenName
// rep.Age = int32(util.IdCardTurnAge(realName.IDNum))
// rep.IdCard = realName.IDNum
// rep.StageName = user.StageName
// rep.WxAccount = user.WxAccount
// rep.JoinAssoTime = user.JoinAssoTime
// rep.IdCardFront = fmt.Sprintf("%v?v=%d", realName.IdcardFront, realName.UpdatedAt.Unix())
// rep.IdCardBack = fmt.Sprintf("%v?v=%d", realName.IdcardBack, realName.UpdatedAt.Unix())
// var conAddressArr []string
// err = json.Unmarshal([]byte(user.ConAddress), &conAddressArr)
// if err != nil {
// zap.L().Error("conAddressArr unmarshal err", zap.Error(err))
// err = errors.New(m.ERROR_UNMARSHAL)
// return nil, err
// }
// rep.ConAddress = conAddressArr
// rep.InvitedCode = user.InvitedCode
// var invited model.Invite
// if err = db.DB.Where("user_id=?", user.ID).First(&invited).Error; err != nil {
// zap.L().Error("get invited info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// var invitedUser model.User
// if err = db.DB.Where("id=?", invited.InvitedId).First(&invitedUser).Error; err != nil {
// zap.L().Error("get invitedUser info err", zap.Error(err))
// err = errors.New(m.ERROR_UNMARSHAL)
// return
// }
// rep.InvitedName = invitedUser.Name
// rep.Sex = user.Sex
// rep.FddState = user.FddState
// rep.CustomerId = user.CustomerId
// rep.Photo = fmt.Sprintf("%v?v=%d", user.Photo, user.UpdatedAt.Unix())
// if user.Video != "" {
// rep.Video = fmt.Sprintf("%v?v=%d", user.Video, user.UpdatedAt.Unix())
// }
// rep.QrCodeImg = fmt.Sprintf("https://cdn.fontree.cn/artistmgmt/static/qrcode/%v.png", user.InvitedCode)
// rep.QrCodeImgDownload = fmt.Sprintf("https://cdn.fontree.cn/artistmgmt/static/qrcode/%v-2.png", user.InvitedCode)
// return rep, nil
// }
// func Update(req *artist.UpdateUserInfoRequest) (rep *artist.UpdateUserInfoRespond, err error) {
// rep = &artist.UpdateUserInfoRespond{}
// data := &artist.User{}
// var user model.User
// if err = db.DB.First(&user, "id = ?", int32(req.Id)).Error; err != nil {
// zap.L().Error("get user info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// user.PenName = req.Data.PenName
// user.Photo = req.Data.Photo
// user.Video = req.Data.Video
// user.CertificateImg = req.Data.CertificateImg
// conAddessByte, err := json.Marshal(req.Data.ConAddress)
// if err != nil {
// zap.L().Error("conAddress marshal err", zap.Error(err))
// err = errors.New(m.ERROR_MARSHAL)
// return nil, err
// }
// user.ConAddress = string(conAddessByte)
// user.WxAccount = req.Data.WxAccount
// user.CertificateNum = req.Data.CertificateNum
// if err = db.DB.Save(&user).Error; err != nil {
// zap.L().Error("save user info err", zap.Error(err))
// err = errors.New(m.SAVE_ERROR)
// return
// }
// var realName model.RealName
// if err = db.DB.First(&realName, "id = ?", user.RealNameID).Error; err != nil {
// zap.L().Error("get RealName info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// realName.IdcardBack = req.Data.IdCardBack
// realName.IdcardFront = req.Data.IdCardFront
// if err = db.DB.Save(&realName).Error; err != nil {
// zap.L().Error("save realName info err", zap.Error(err))
// err = errors.New(m.SAVE_ERROR)
// return
// }
// copyOpt := util.CopyOption{
// Src: &user,
// Dst: data,
// }
// util.CopyStructSuper(copyOpt)
// rep.User = data
// return
// }
// func UpdateTel(req *artist.UserUpdateTelRequest) (rep *artist.UserUpdateTelRespond, err error) {
// rep = &artist.UserUpdateTelRespond{}
// var user model.User
// if err = db.DB.First(&user, int32(req.Id)).Error; err != nil {
// zap.L().Error("get user info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// str := cache.RedisClient.Get(req.TelNum)
// verCode := str.Val()
// if verCode != req.VerCode {
// zap.L().Error("verCode err", zap.Error(err))
// err = errors.New(m.ERRORCODE)
// return
// }
// if user.TelNum == req.TelNum {
// zap.L().Error("TelNum err", zap.Error(err))
// err = errors.New(m.ERROT_SAME_TEL)
// return
// }
// user.TelNum = req.TelNum
// if err = db.DB.Save(&user).Error; err != nil {
// zap.L().Error("save user info err", zap.Error(err))
// err = errors.New(m.SAVE_ERROR)
// return
// }
// rep.TelNum = user.TelNum
// return
// }
// func UpdateMsg(req *artist.UserUpdateMsgRequest) (rep *artist.UserUpdateMsgRespond, err error) {
// var user model.User
// user.IsRealName = true
// user.ID = int32(req.Id)
// if err = db.DB.Model(&user).Update("is_read", 1).Error; err != nil {
// zap.L().Error("user update failed", zap.Error(err))
// err = errors.New(m.UPDATE_FAILED)
// return
// }
// return
// }
// func VerifyFdd(req *artist.VerifyfddRequest) (rep *artist.VerifyfddRespond, err error) {
// rep = &artist.VerifyfddRespond{}
// var user model.User
// if err = db.DB.Where("id = ?", int32(req.Id)).First(&user).Error; err != nil {
// zap.L().Error("get user info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return
// }
// if user.FddState != 2 {
// return
// }
// rep.Ready = true
// return
// }
// func FinishVerify(req *artist.FinishVerifyRequest) (rep *artist.FinishVerifyRespond, err error) {
// rep = &artist.FinishVerifyRespond{}
// data := &artist.User{}
// var user model.User
// user.ID = int32(req.Id)
// if err = db.DB.Model(&user).Update("fdd_state", 2).Error; err != nil {
// zap.L().Error("user update failed", zap.Error(err))
// err = errors.New(m.UPDATE_FAILED)
// return
// }
// copyOpt := util.CopyOption{
// Src: &user,
// Dst: data,
// }
// util.CopyStructSuper(copyOpt)
// rep.User = data
// return
// }
// func CheckInvitedCode(invitedCode string) (user *model.User, err error) {
// user = &model.User{}
// //找到用户
// if err := db.DB.Where("invited_code =?", invitedCode).Find(user).Error; err != nil {
// zap.L().Error("get user info err", zap.Error(err))
// err = errors.New(m.ERROR_SELECT)
// return nil, err
// }
// if user.ID == 0 {
// err = errors.New(m.INVITE_CODE_INVALID)
// return nil, err
// }
// return user, nil
// }
// func Createinvite(userId, invitedId int32) (invite *model.Invite, err error) {
// invite = &model.Invite{}
// invite.UserId = userId
// invite.InvitedId = invitedId
// if err := db.DB.Create(&invite).Error; err != nil {
// zap.L().Error("create invite info err", zap.Error(err))
// err = errors.New(m.CREATE_ERROR)
// return nil, err
// }
// return invite, nil
// }
err = db.DB.Where("id = ?", req.Id).First(&user).Error
if err != nil {
zap.L().Error("get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
userByte, err := json.Marshal(user)
if err != nil {
zap.L().Error("1get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
fmt.Println(string(userByte))
var re = new(artistinfo.GetUserMsgRespond)
err = json.Unmarshal(userByte, re)
if err != nil {
zap.L().Error("1get user info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return nil, err
}
rep = re
return rep, nil
}

View File

@ -3,6 +3,8 @@ package dao
import (
"encoding/json"
"errors"
"fmt"
"github.com/fonchain/fonchain-artistinfo/cmd/model"
"github.com/fonchain/fonchain-artistinfo/pb/artwork"
db "github.com/fonchain/fonchain-artistinfo/pkg/db"
@ -50,13 +52,15 @@ func CheckUserLock(id int64) (err error) {
err = errors.New(m.ERROR_SELECT)
return
}
fmt.Printf("%+v\n", user)
if user.IsLock {
fmt.Println(user.IsLock)
fmt.Println("22222")
zap.L().Error("user is lock")
return errors.New(m.ERROR_ISLOCK)
}
return
fmt.Println("333333")
return nil
}
func UpdateArtwork(data *artwork.UpdateArtworkRequest) (err error) {
@ -128,14 +132,16 @@ func ApproveArtwork(req *artwork.ApproveArtworkRequest) (rep *artwork.ApproveArt
func GetArtworkList(req *artwork.GetArtworkListRequest) (rep *artwork.GetArtworkListRespond, err error) {
rep = &artwork.GetArtworkListRespond{}
var datas []*artwork.UpdateArtworkRequest
fmt.Println("111")
var artworkList []model.Artwork
//找到用户 p[]
if err = db.DB.Order("created_at desc").Where("id = ?", req.ID).Find(&artworkList).Error; err != nil {
if err = db.DB.Order("created_at desc").Where("artist_id = ?", req.ID).Find(&artworkList).Error; err != nil {
fmt.Println("222")
zap.L().Error("get artwork info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return
}
fmt.Println("333")
for k, v := range artworkList {
artworkList[k].CreateTime = v.CreatedAt.Format("2006-01-02")
var data artwork.UpdateArtworkRequest
@ -167,15 +173,15 @@ func GetArtwork(id int32) (rep *artwork.GetArtworkRespond, err error) {
rep = &artwork.GetArtworkRespond{}
var artworkRes model.Artwork
if err = db.DB.Find(&artworkRes, "id = ? and deleted_at is null", id).Error; err != nil {
if err = db.DB.Where("id = ?", id).First(&artworkRes).Error; err != nil {
zap.L().Error("get artwork info err", zap.Error(err))
err = errors.New(m.ERROR_SELECT)
return
}
artworkRes.CreateTime = artworkRes.CreatedAt.Format("2006-01-02")
var createAddressByte []string
json.Unmarshal([]byte(artworkRes.CreateAddress), &createAddressByte)
//var createAddressByte []string
//json.Unmarshal([]byte(artworkRes.CreateAddress), &createAddressByte)
rep.ID = uint64(artworkRes.ID)
// rep.ArtistId = uint64(artworkRes.ArtistId)
rep.Name = artworkRes.Name
@ -183,7 +189,10 @@ func GetArtwork(id int32) (rep *artwork.GetArtworkRespond, err error) {
rep.Photo = artworkRes.Photo
rep.ArtistPhoto = artworkRes.ArtistPhoto
rep.Width = uint64(artworkRes.Width)
rep.CreateAddress = createAddressByte
if artworkRes.CreateAddress == "" {
artworkRes.CreateAddress = "[]"
}
rep.CreateAddress = artworkRes.CreateAddress
rep.Height = uint64(artworkRes.Height)
rep.Ruler = uint64(artworkRes.Ruler)
rep.Introduct = artworkRes.Introduct
@ -192,7 +201,7 @@ func GetArtwork(id int32) (rep *artwork.GetArtworkRespond, err error) {
rep.NetworkTrace = artworkRes.NetworkTrace
rep.Url = artworkRes.Url
rep.State = uint64(artworkRes.State)
return
return rep, nil
}
func UploadArtwork(Id uint64) (err error) {

View File

@ -1,6 +1,7 @@
package logic
import (
"fmt"
"github.com/fonchain/fonchain-artistinfo/cmd/internal/dao"
"github.com/fonchain/fonchain-artistinfo/pb/artistinfo"
)
@ -9,6 +10,7 @@ type IArtistInfo interface {
RegisterUser(req *artistinfo.RegisterUserRequest) (rep *artistinfo.RegisterUserRespond, err error)
GetUserById(req *artistinfo.GetUserByIdRequest) (rep *artistinfo.GetUserByIdRespond, err error)
GetUser(req *artistinfo.GetUserRequest) (rep *artistinfo.GetUserRespond, err error)
CreateUserInfo(req *artistinfo.CreateUserInfoRequest) (rep *artistinfo.CreateUserInfoRespond, err error)
UpdateRealName(req *artistinfo.UpdateRealNameRequest) (rep *artistinfo.UpdateRealNameRespond, err error)
FinishVerify(req *artistinfo.FinishVerifyRequest) (rep *artistinfo.FinishVerifyRespond, err error)
CheckUserLock(req *artistinfo.CheckUserLockRequest) (rep *artistinfo.CheckUserLockRespond, err error)
@ -25,11 +27,16 @@ func (a *ArtistInfo) GetUser(req *artistinfo.GetUserRequest) (rep *artistinfo.Ge
rep, err = dao.GetUser(req)
return
}
func (a *ArtistInfo) RegisterUser(req *artistinfo.RegisterUserRequest) (rep *artistinfo.RegisterUserRespond, err error) {
rep, err = dao.RegisterUser(req)
return
}
func (a *ArtistInfo) CreateUserInfo(req *artistinfo.CreateUserInfoRequest) (rep *artistinfo.CreateUserInfoRespond, err error) {
fmt.Println("第二处")
rep, err = dao.CreateUserInfo(req)
return
}
func (a *ArtistInfo) GetUserById(req *artistinfo.GetUserByIdRequest) (rep *artistinfo.GetUserByIdRespond, err error) {
rep, err = dao.GetUserById(req)
return
@ -57,3 +64,17 @@ func (a *ArtistInfo) UserLock(req *artistinfo.UserLockRequest) (rep *artistinfo.
rep, err = dao.UserLock(req)
return
}
func (a *ArtistInfo) CheckInvitedCode(req *artistinfo.CheckInvitedCodeRequest) (rep *artistinfo.GetUserRespond, err error) {
rep, err = dao.CheckInvitedCode(req)
return
}
func (a *ArtistInfo) UnFinishList(req *artistinfo.UnFinishListRequest) (rep *artistinfo.UnFinishListRespond, err error) {
rep, err = dao.UnFinishList(req)
return
}
func (a *ArtistInfo) GetUserMsg(req *artistinfo.GetUserMsgRequest) (rep *artistinfo.GetUserMsgRespond, err error) {
rep, err = dao.GetUserMsg(req)
return
}

View File

@ -34,6 +34,7 @@ type User struct {
Video string `gorm:"type:varchar(256) not null"`
IsRealName int64 `gorm:"not null"`
IsFdd int64 `gorm:"not null"`
FddState int64 `gorm:"not null"`
WxAccount string `gorm:"type:varchar(256) not null"`
IsLock bool `gorm:"not null"`
InvitedCode string `gorm:"type:varchar(16) default ''"`

View File

@ -1,22 +1,16 @@
[system]
mode = dev #正式prod #测试dev
#[mysql]
#Db = mysql
#DbHost = 172.16.100.99 #214
#DbPort = 9007
#DbUser = artuser
#DbPassWord = "C250PflXIWv2SQm8"
#DbArtist = artist
[mysql]
Db = mysql
DbHost = 106.13.166.247
DbHost = mysql
DbPort = 3306
DbUser = date002
DbPassWord = "pnR)1J)_GzbEnC0"
DbUser = root
DbPassWord = 123456
DbName = artistmgmttest
[redis]
RedisDB = 2
RedisAddr = 172.16.100.99:9008
RedisPW = "nDCTrfTtBu3Pw"

View File

@ -12,7 +12,7 @@ dubbo:
protocols:
triple: #triple
name: tri
port: 20016
port: 20050
provider:
services:
ArtistInfoProvider:

View File

@ -7,30 +7,30 @@ dubbo:
registries:
demoZK:
protocol: zookeeper
timeout: 3s
# address: 127.0.0.1:2181
timeout: 120s
# address: 127.0.0.1:2181
# address: 121.229.45.214:9004
# address: 114.218.158.24:2181
address: 172.16.100.93:2181
address: zookeeper:2181
protocols:
triple: #triple
name: tri
# ip: 121.229.45.214
port: 20004
port: 20050
provider:
services:
ArtistProvider:
interface: com.fontree.microservices.common.Artist
retries: 0
filter: tps
# token: "dubbo"
# application: "1234"
tps.limiter: method-service
tps.limit.strategy: fixedWindow
tps.limit.rejected.handler: DefaultValueHandler
tps.limit.interval: 1000
tps.limit.rate: 3
warmup: 100 #预热时间
ArtistInfoProvider:
interface: com.fontree.microservices.common.ArtistInfo
# retries: 100
ContractProvider:
interface: com.fontree.microservices.common.Contract
# retries: 0
ArtWorkProvider:
interface: com.fontree.microservices.common.ArtWork
# retries: 0
SupplyProvider:
interface: com.fontree.microservices.common.Supply
# retries: 0
logger:
zap-config:
level: info # 日志级别
@ -71,3 +71,7 @@ dubbo:
localTime: true
# 是否压缩日志文件,压缩方法 gzip
compress: false

View File

@ -16,7 +16,7 @@ dubbo:
triple: #triple
name: tri
# ip: 121.229.45.214
port: 20016
port: 20050
provider:
services:
ArtistInfoProvider:

View File

@ -7,21 +7,21 @@ dubbo:
registries:
demoZK:
protocol: zookeeper
timeout: 3s
timeout: 120s
# address: 127.0.0.1:2181
# address: 121.229.45.214:9004
# address: 114.218.158.24:2181
address: 192.16.100.93:2181
address: zookeeper:2181
protocols:
triple: #triple
name: tri
# ip: 121.229.45.214
port: 20016
port: 20050
provider:
services:
ArtistInfoProvider:
interface: com.fontree.microservices.common.ArtistInfo
# retries: 0
# retries: 100
ContractProvider:
interface: com.fontree.microservices.common.Contract
# retries: 0
@ -71,3 +71,7 @@ dubbo:
localTime: true
# 是否压缩日志文件,压缩方法 gzip
compress: false

File diff suppressed because it is too large Load Diff

View File

@ -15,8 +15,68 @@ service ArtistInfo {
rpc CheckUserLock (CheckUserLockRequest) returns (CheckUserLockRespond) {}
rpc ArtistSupplyList (ArtistSupplyListRequest) returns (ArtistSupplyListRespond){}
rpc UserLock (UserLockRequest) returns(UserLockRespond){}
rpc CheckInvitedCode(CheckInvitedCodeRequest)returns (GetUserRespond){}
rpc UnFinishList(UnFinishListRequest)returns (UnFinishListRespond){}
rpc GetUserMsg(GetUserMsgRequest) returns (GetUserMsgRespond){}
}
message GetUserMsgRequest{
uint64 Id =1;
}
message GetUserMsgRespond{
uint64 ID =1[json_name = "id"];
uint64 MgmtUserId =2[json_name = "mgmtUserId"];
string MgmtArtistId =3[json_name = "mgmtArtistId"];
string Account =4[json_name = "account"];
string MnemonicWords =5[json_name = "mnemonicWords"];
string TelNum =6[json_name = "telNum"];
string Name =7[json_name = "name"];
string PenName =8[json_name = "penName"];
string StageName =9[json_name = "stageName"];
string JoinAssoTime =10[json_name = "joinAssoTime"];
string CertificateNum =11[json_name = "certificateNum"];
string CertificateImg =12[json_name = "certificateImg"];
string Key =13[json_name = "key"];
int32 RealNameID =14[json_name = "realNameID"];
string IDNum =15[json_name = "idNum"];
int32 Sex =16[json_name = "sex"];
int64 Ruler =17[json_name = "ruler"];
string OpenId =18[json_name = "openId"];
string CustomerId =19[json_name = "customerId"];
int32 Age =20[json_name = "age"];
string Introduct =21[json_name = "introduct"];
int64 CreateAt =22[json_name = "createAt"];
string ConAddress =23[json_name = "conAddress"];
string Photo =24[json_name = "photo"];
string Video =25[json_name = "video"];
int64 IsRealName =26[json_name = "isRealName"];
int64 IsFdd =27[json_name = "isFdd"];
int64 FddState =28[json_name = "fddState"];
string WxAccount =29[json_name = "wxAccount"];
bool IsLock =30[json_name = "isLock"];
string InvitedCode =31[json_name = "invitedCode"];
int32 IsRead =32[json_name = "isRead"];
int32 IsImport =33[json_name = "isImport"];
bool Enable =34[json_name = "enable"];
}
message CheckInvitedCodeRequest {
string InvitedCode =1;
}
message CheckInvitedCodeRespond {
}
message UnFinishListRequest {
uint64 Id = 1;
}
message UnFinishListRespond {
int64 ContractList =1;
int64 SupplyInfoList =2;
int64 AccountStateList =3;
}
}
message UploadPicRequest {
}
@ -143,6 +203,7 @@ message CreateUserInfoRequest {
string QrCodeImgDownload =23 [json_name ="qrCodeDownload" ];
string HtmlType =24 [json_name ="htmlType" ];
string EnvType =25 [json_name ="envType" ];
uint64 Id =26 [json_name="id"];
}
message CreateUserInfoRespond {

View File

@ -40,6 +40,9 @@ type ArtistInfoClient interface {
CheckUserLock(ctx context.Context, in *CheckUserLockRequest, opts ...grpc_go.CallOption) (*CheckUserLockRespond, common.ErrorWithAttachment)
ArtistSupplyList(ctx context.Context, in *ArtistSupplyListRequest, opts ...grpc_go.CallOption) (*ArtistSupplyListRespond, common.ErrorWithAttachment)
UserLock(ctx context.Context, in *UserLockRequest, opts ...grpc_go.CallOption) (*UserLockRespond, common.ErrorWithAttachment)
CheckInvitedCode(ctx context.Context, in *CheckInvitedCodeRequest, opts ...grpc_go.CallOption) (*GetUserRespond, common.ErrorWithAttachment)
UnFinishList(ctx context.Context, in *UnFinishListRequest, opts ...grpc_go.CallOption) (*UnFinishListRespond, common.ErrorWithAttachment)
GetUserMsg(ctx context.Context, in *GetUserMsgRequest, opts ...grpc_go.CallOption) (*GetUserMsgRespond, common.ErrorWithAttachment)
}
type artistInfoClient struct {
@ -59,6 +62,9 @@ type ArtistInfoClientImpl struct {
CheckUserLock func(ctx context.Context, in *CheckUserLockRequest) (*CheckUserLockRespond, error)
ArtistSupplyList func(ctx context.Context, in *ArtistSupplyListRequest) (*ArtistSupplyListRespond, error)
UserLock func(ctx context.Context, in *UserLockRequest) (*UserLockRespond, error)
CheckInvitedCode func(ctx context.Context, in *CheckInvitedCodeRequest) (*GetUserRespond, error)
UnFinishList func(ctx context.Context, in *UnFinishListRequest) (*UnFinishListRespond, error)
GetUserMsg func(ctx context.Context, in *GetUserMsgRequest) (*GetUserMsgRespond, error)
}
func (c *ArtistInfoClientImpl) GetDubboStub(cc *triple.TripleConn) ArtistInfoClient {
@ -145,6 +151,24 @@ func (c *artistInfoClient) UserLock(ctx context.Context, in *UserLockRequest, op
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UserLock", in, out)
}
func (c *artistInfoClient) CheckInvitedCode(ctx context.Context, in *CheckInvitedCodeRequest, opts ...grpc_go.CallOption) (*GetUserRespond, common.ErrorWithAttachment) {
out := new(GetUserRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CheckInvitedCode", in, out)
}
func (c *artistInfoClient) UnFinishList(ctx context.Context, in *UnFinishListRequest, opts ...grpc_go.CallOption) (*UnFinishListRespond, common.ErrorWithAttachment) {
out := new(UnFinishListRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UnFinishList", in, out)
}
func (c *artistInfoClient) GetUserMsg(ctx context.Context, in *GetUserMsgRequest, opts ...grpc_go.CallOption) (*GetUserMsgRespond, common.ErrorWithAttachment) {
out := new(GetUserMsgRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserMsg", in, out)
}
// ArtistInfoServer is the server API for ArtistInfo service.
// All implementations must embed UnimplementedArtistInfoServer
// for forward compatibility
@ -161,6 +185,9 @@ type ArtistInfoServer interface {
CheckUserLock(context.Context, *CheckUserLockRequest) (*CheckUserLockRespond, error)
ArtistSupplyList(context.Context, *ArtistSupplyListRequest) (*ArtistSupplyListRespond, error)
UserLock(context.Context, *UserLockRequest) (*UserLockRespond, error)
CheckInvitedCode(context.Context, *CheckInvitedCodeRequest) (*GetUserRespond, error)
UnFinishList(context.Context, *UnFinishListRequest) (*UnFinishListRespond, error)
GetUserMsg(context.Context, *GetUserMsgRequest) (*GetUserMsgRespond, error)
mustEmbedUnimplementedArtistInfoServer()
}
@ -205,6 +232,15 @@ func (UnimplementedArtistInfoServer) ArtistSupplyList(context.Context, *ArtistSu
func (UnimplementedArtistInfoServer) UserLock(context.Context, *UserLockRequest) (*UserLockRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method UserLock not implemented")
}
func (UnimplementedArtistInfoServer) CheckInvitedCode(context.Context, *CheckInvitedCodeRequest) (*GetUserRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckInvitedCode not implemented")
}
func (UnimplementedArtistInfoServer) UnFinishList(context.Context, *UnFinishListRequest) (*UnFinishListRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method UnFinishList not implemented")
}
func (UnimplementedArtistInfoServer) GetUserMsg(context.Context, *GetUserMsgRequest) (*GetUserMsgRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserMsg not implemented")
}
func (s *UnimplementedArtistInfoServer) XXX_SetProxyImpl(impl protocol.Invoker) {
s.proxyImpl = impl
}
@ -581,6 +617,93 @@ func _ArtistInfo_UserLock_Handler(srv interface{}, ctx context.Context, dec func
return interceptor(ctx, in, info, handler)
}
func _ArtistInfo_CheckInvitedCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckInvitedCodeRequest)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("CheckInvitedCode", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _ArtistInfo_UnFinishList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(UnFinishListRequest)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("UnFinishList", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _ArtistInfo_GetUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserMsgRequest)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserMsg", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
// ArtistInfo_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfo service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
@ -636,6 +759,18 @@ var ArtistInfo_ServiceDesc = grpc_go.ServiceDesc{
MethodName: "UserLock",
Handler: _ArtistInfo_UserLock_Handler,
},
{
MethodName: "CheckInvitedCode",
Handler: _ArtistInfo_CheckInvitedCode_Handler,
},
{
MethodName: "UnFinishList",
Handler: _ArtistInfo_UnFinishList_Handler,
},
{
MethodName: "GetUserMsg",
Handler: _ArtistInfo_GetUserMsg_Handler,
},
},
Streams: []grpc_go.StreamDesc{},
Metadata: "pb/artistinfo/artistinfo.proto",

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package Artwork;
package artwork;
option go_package = "./;artwork";
//$ protoc --proto_path=. --go_out=./api/artwork --go-triple_out=./api/artwork ./api/artwork/artwork.proto
//$ protoc --proto_path=. --go_out=./pb/artwork --go-triple_out=./pb/artwork ./pb/artwork/artwork.proto
service Artwork {
rpc ArtworkAdd (ArtworkAddRequest) returns (ArtworkAddRespond) {}
rpc CheckUserLock (CheckUserLockRequest) returns (CheckUserLockRespond) {}
@ -12,6 +12,16 @@ service Artwork {
rpc GetArtwork (GetArtworkRequest) returns (GetArtworkRespond) {}
rpc DelArtwork (DelArtworkRequest) returns (DelArtworkRespond) {}
rpc UploadArtwork (UploadArtworkRequest) returns (UploadArtworkRespond) {}
rpc UpdateMsg(UpdateMsgRequest) returns (UpdateMsgRespond){}
}
message UpdateMsgRequest {
uint64 Id =1;
}
message UpdateMsgRespond {
}
}
message ListInterfaceRespond {
@ -130,7 +140,7 @@ message GetArtworkRequest{
string Photo = 5 [json_name = "photo"];
string ArtistPhoto = 6 [json_name = "artistPhoto"];
uint64 Width = 7 [json_name = "width"];
repeated string CreateAddress = 8 [json_name = "createAddress"];
string CreateAddress = 8 [json_name = "createAddress"];
uint64 Height = 9 [json_name = "height"];
uint64 Ruler = 10 [json_name = "ruler"];
string Introduct = 11 [json_name = "introduct"];

View File

@ -2,7 +2,7 @@
// versions:
// - protoc-gen-go-triple v1.0.5
// - protoc v3.9.0
// source: api/artwork/artwork.proto
// source: pb/artwork/artwork.proto
package artwork
@ -60,7 +60,7 @@ func (c *ArtworkClientImpl) GetDubboStub(cc *triple.TripleConn) ArtworkClient {
}
func (c *ArtworkClientImpl) XXX_InterfaceName() string {
return "Artwork.Artwork"
return "artwork.Artwork"
}
func NewArtworkClient(cc *triple.TripleConn) ArtworkClient {
@ -181,7 +181,7 @@ func (s *UnimplementedArtworkServer) XXX_ServiceDesc() *grpc_go.ServiceDesc {
return &Artwork_ServiceDesc
}
func (s *UnimplementedArtworkServer) XXX_InterfaceName() string {
return "Artwork.Artwork"
return "artwork.Artwork"
}
func (UnimplementedArtworkServer) mustEmbedUnimplementedArtworkServer() {}
@ -462,7 +462,7 @@ func _Artwork_UploadArtwork_Handler(srv interface{}, ctx context.Context, dec fu
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var Artwork_ServiceDesc = grpc_go.ServiceDesc{
ServiceName: "Artwork.Artwork",
ServiceName: "artwork.Artwork",
HandlerType: (*ArtworkServer)(nil),
Methods: []grpc_go.MethodDesc{
{
@ -503,5 +503,5 @@ var Artwork_ServiceDesc = grpc_go.ServiceDesc{
},
},
Streams: []grpc_go.StreamDesc{},
Metadata: "api/artwork/artwork.proto",
Metadata: "pb/artwork/artwork.proto",
}

View File

@ -25,7 +25,7 @@ type FinishContractRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TransactionId string `protobuf:"bytes,1,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId,omitempty"`
TransactionId string `protobuf:"bytes,1,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId"`
}
func (x *FinishContractRequest) Reset() {
@ -110,10 +110,10 @@ type ContractListRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PageSize int64 `protobuf:"varint,1,opt,name=PageSize,json=pageSize,proto3" json:"PageSize,omitempty"`
Page int64 `protobuf:"varint,2,opt,name=Page,json=page,proto3" json:"Page,omitempty"`
State int64 `protobuf:"varint,3,opt,name=State,json=state,proto3" json:"State,omitempty"`
ID int64 `protobuf:"varint,4,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
PageSize int64 `protobuf:"varint,1,opt,name=PageSize,json=pageSize,proto3" json:"PageSize"`
Page int64 `protobuf:"varint,2,opt,name=Page,json=page,proto3" json:"Page"`
State int64 `protobuf:"varint,3,opt,name=State,json=state,proto3" json:"State"`
ID int64 `protobuf:"varint,4,opt,name=ID,json=id,proto3" json:"ID"`
}
func (x *ContractListRequest) Reset() {
@ -181,7 +181,7 @@ type ContractListRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*ContractData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
Data []*ContractData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data"`
}
func (x *ContractListRespond) Reset() {
@ -228,23 +228,23 @@ type ContractData struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
CardId string `protobuf:"bytes,3,opt,name=CardId,json=cardId,proto3" json:"CardId,omitempty"`
MgmtUserId string `protobuf:"bytes,4,opt,name=MgmtUserId,json=mgmtUserId,proto3" json:"MgmtUserId,omitempty"`
ArtworkId string `protobuf:"bytes,5,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId,omitempty"`
ContractId string `protobuf:"bytes,6,opt,name=ContractId,json=contractId,proto3" json:"ContractId,omitempty"`
TransactionId string `protobuf:"bytes,7,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId,omitempty"`
Type int64 `protobuf:"varint,8,opt,name=Type,json=type,proto3" json:"Type,omitempty"`
BatchId int64 `protobuf:"varint,9,opt,name=BatchId,json=batchId,proto3" json:"BatchId,omitempty"`
BatchName string `protobuf:"bytes,10,opt,name=BatchName,json=batchName,proto3" json:"BatchName,omitempty"`
ViewUrl string `protobuf:"bytes,11,opt,name=ViewUrl,json=viewUrl,proto3" json:"ViewUrl,omitempty"`
DownloadUrl string `protobuf:"bytes,12,opt,name=DownloadUrl,json=downloadUrl,proto3" json:"DownloadUrl,omitempty"`
State int64 `protobuf:"varint,13,opt,name=State,json=state,proto3" json:"State,omitempty"`
UpdateTime string `protobuf:"bytes,14,opt,name=UpdateTime,json=updateTime,proto3" json:"UpdateTime,omitempty"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime,omitempty"`
ExpirationTime string `protobuf:"bytes,16,opt,name=ExpirationTime,json=expirationTime,proto3" json:"ExpirationTime,omitempty"`
SignTime string `protobuf:"bytes,17,opt,name=SignTime,json=signTime,proto3" json:"SignTime,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId int64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
CardId string `protobuf:"bytes,3,opt,name=CardId,json=cardId,proto3" json:"CardId"`
MgmtUserId string `protobuf:"bytes,4,opt,name=MgmtUserId,json=mgmtUserId,proto3" json:"MgmtUserId"`
ArtworkId string `protobuf:"bytes,5,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId"`
ContractId string `protobuf:"bytes,6,opt,name=ContractId,json=contractId,proto3" json:"ContractId"`
TransactionId string `protobuf:"bytes,7,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId"`
Type int64 `protobuf:"varint,8,opt,name=Type,json=type,proto3" json:"Type"`
BatchId int64 `protobuf:"varint,9,opt,name=BatchId,json=batchId,proto3" json:"BatchId"`
BatchName string `protobuf:"bytes,10,opt,name=BatchName,json=batchName,proto3" json:"BatchName"`
ViewUrl string `protobuf:"bytes,11,opt,name=ViewUrl,json=viewUrl,proto3" json:"ViewUrl"`
DownloadUrl string `protobuf:"bytes,12,opt,name=DownloadUrl,json=downloadUrl,proto3" json:"DownloadUrl"`
State int64 `protobuf:"varint,13,opt,name=State,json=state,proto3" json:"State"`
UpdateTime string `protobuf:"bytes,14,opt,name=UpdateTime,json=updateTime,proto3" json:"UpdateTime"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime"`
ExpirationTime string `protobuf:"bytes,16,opt,name=ExpirationTime,json=expirationTime,proto3" json:"ExpirationTime"`
SignTime string `protobuf:"bytes,17,opt,name=SignTime,json=signTime,proto3" json:"SignTime"`
}
func (x *ContractData) Reset() {
@ -403,10 +403,10 @@ type ContractTxListRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PageSize int64 `protobuf:"varint,1,opt,name=PageSize,json=pageSize,proto3" json:"PageSize,omitempty"`
Page int64 `protobuf:"varint,2,opt,name=Page,json=page,proto3" json:"Page,omitempty"`
State int64 `protobuf:"varint,3,opt,name=State,json=state,proto3" json:"State,omitempty"`
ID int64 `protobuf:"varint,4,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
PageSize int64 `protobuf:"varint,1,opt,name=PageSize,json=pageSize,proto3" json:"PageSize"`
Page int64 `protobuf:"varint,2,opt,name=Page,json=page,proto3" json:"Page"`
State int64 `protobuf:"varint,3,opt,name=State,json=state,proto3" json:"State"`
ID int64 `protobuf:"varint,4,opt,name=ID,json=id,proto3" json:"ID"`
}
func (x *ContractTxListRequest) Reset() {
@ -474,7 +474,7 @@ type ContractTxListRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*ContractData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
Data []*ContractData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data"`
}
func (x *ContractTxListRespond) Reset() {
@ -521,9 +521,9 @@ type SignContractRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ContractId int64 `protobuf:"varint,1,opt,name=ContractId,json=contractId,proto3" json:"ContractId,omitempty"`
HtmlType string `protobuf:"bytes,2,opt,name=HtmlType,json=htmlType,proto3" json:"HtmlType,omitempty"`
EnvType string `protobuf:"bytes,3,opt,name=EnvType,json=envType,proto3" json:"EnvType,omitempty"`
ContractId int64 `protobuf:"varint,1,opt,name=ContractId,json=contractId,proto3" json:"ContractId"`
HtmlType string `protobuf:"bytes,2,opt,name=HtmlType,json=htmlType,proto3" json:"HtmlType"`
EnvType string `protobuf:"bytes,3,opt,name=EnvType,json=envType,proto3" json:"EnvType"`
}
func (x *SignContractRequest) Reset() {
@ -622,7 +622,7 @@ type GetContractRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=Id,json=id,proto3" json:"Id,omitempty"`
Id int64 `protobuf:"varint,1,opt,name=Id,json=id,proto3" json:"Id"`
}
func (x *GetContractRequest) Reset() {
@ -669,23 +669,23 @@ type UpdateContractRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
CardId string `protobuf:"bytes,3,opt,name=CardId,json=cardId,proto3" json:"CardId,omitempty"`
MgmtUserId string `protobuf:"bytes,4,opt,name=MgmtUserId,json=mgmtUserId,proto3" json:"MgmtUserId,omitempty"`
ArtworkId string `protobuf:"bytes,5,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId,omitempty"`
ContractId string `protobuf:"bytes,6,opt,name=ContractId,json=contractId,proto3" json:"ContractId,omitempty"`
TransactionId string `protobuf:"bytes,7,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId,omitempty"`
Type int64 `protobuf:"varint,8,opt,name=Type,json=type,proto3" json:"Type,omitempty"`
BatchId int64 `protobuf:"varint,9,opt,name=BatchId,json=batchId,proto3" json:"BatchId,omitempty"`
BatchName string `protobuf:"bytes,10,opt,name=BatchName,json=batchName,proto3" json:"BatchName,omitempty"`
ViewUrl string `protobuf:"bytes,11,opt,name=ViewUrl,json=viewUrl,proto3" json:"ViewUrl,omitempty"`
DownloadUrl string `protobuf:"bytes,12,opt,name=DownloadUrl,json=downloadUrl,proto3" json:"DownloadUrl,omitempty"`
State int64 `protobuf:"varint,13,opt,name=State,json=state,proto3" json:"State,omitempty"`
UpdateTime string `protobuf:"bytes,14,opt,name=UpdateTime,json=updateTime,proto3" json:"UpdateTime,omitempty"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime,omitempty"`
ExpirationTime string `protobuf:"bytes,16,opt,name=ExpirationTime,json=expirationTime,proto3" json:"ExpirationTime,omitempty"`
SignTime string `protobuf:"bytes,17,opt,name=SignTime,json=signTime,proto3" json:"SignTime,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId int64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
CardId string `protobuf:"bytes,3,opt,name=CardId,json=cardId,proto3" json:"CardId"`
MgmtUserId string `protobuf:"bytes,4,opt,name=MgmtUserId,json=mgmtUserId,proto3" json:"MgmtUserId"`
ArtworkId string `protobuf:"bytes,5,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId"`
ContractId string `protobuf:"bytes,6,opt,name=ContractId,json=contractId,proto3" json:"ContractId"`
TransactionId string `protobuf:"bytes,7,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId"`
Type int64 `protobuf:"varint,8,opt,name=Type,json=type,proto3" json:"Type"`
BatchId int64 `protobuf:"varint,9,opt,name=BatchId,json=batchId,proto3" json:"BatchId"`
BatchName string `protobuf:"bytes,10,opt,name=BatchName,json=batchName,proto3" json:"BatchName"`
ViewUrl string `protobuf:"bytes,11,opt,name=ViewUrl,json=viewUrl,proto3" json:"ViewUrl"`
DownloadUrl string `protobuf:"bytes,12,opt,name=DownloadUrl,json=downloadUrl,proto3" json:"DownloadUrl"`
State int64 `protobuf:"varint,13,opt,name=State,json=state,proto3" json:"State"`
UpdateTime string `protobuf:"bytes,14,opt,name=UpdateTime,json=updateTime,proto3" json:"UpdateTime"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime"`
ExpirationTime string `protobuf:"bytes,16,opt,name=ExpirationTime,json=expirationTime,proto3" json:"ExpirationTime"`
SignTime string `protobuf:"bytes,17,opt,name=SignTime,json=signTime,proto3" json:"SignTime"`
}
func (x *UpdateContractRequest) Reset() {
@ -882,8 +882,8 @@ type UpdateContractTxRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
TransactionId string `protobuf:"bytes,2,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId,omitempty"`
ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
TransactionId string `protobuf:"bytes,2,opt,name=TransactionId,json=transactionId,proto3" json:"TransactionId"`
}
func (x *UpdateContractTxRequest) Reset() {

View File

@ -25,8 +25,8 @@ type GetSupplyInfoListRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ArtistId uint64 `protobuf:"varint,1,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
Types uint64 `protobuf:"varint,2,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
ArtistId uint64 `protobuf:"varint,1,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId"`
Types uint64 `protobuf:"varint,2,opt,name=Types,json=types,proto3" json:"Types"`
}
func (x *GetSupplyInfoListRequest) Reset() {
@ -80,7 +80,7 @@ type GetSupplyInfoListRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*GetSupplyInfoData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
Data []*GetSupplyInfoData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data"`
}
func (x *GetSupplyInfoListRespond) Reset() {
@ -127,29 +127,29 @@ type GetSupplyInfoData struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
ArtworkId string `protobuf:"bytes,2,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId,omitempty"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
UserId uint64 `protobuf:"varint,4,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
ModelYear string `protobuf:"bytes,6,opt,name=ModelYear,json=modelYear,proto3" json:"ModelYear,omitempty"`
Photo string `protobuf:"bytes,7,opt,name=Photo,json=photo,proto3" json:"Photo,omitempty"`
ArtistPhoto string `protobuf:"bytes,8,opt,name=ArtistPhoto,json=artistPhoto,proto3" json:"ArtistPhoto,omitempty"`
Width uint64 `protobuf:"varint,9,opt,name=Width,json=width,proto3" json:"Width,omitempty"`
Height uint64 `protobuf:"varint,10,opt,name=Height,json=height,proto3" json:"Height,omitempty"`
Ruler uint64 `protobuf:"varint,11,opt,name=Ruler,json=ruler,proto3" json:"Ruler,omitempty"`
ExhibitInfo string `protobuf:"bytes,12,opt,name=ExhibitInfo,json=exhibitInfo,proto3" json:"ExhibitInfo,omitempty"`
ExhibitPic1 string `protobuf:"bytes,13,opt,name=ExhibitPic1,json=exhibitPic1,proto3" json:"ExhibitPic1,omitempty"`
ExhibitPic2 string `protobuf:"bytes,14,opt,name=ExhibitPic2,json=exhibitPic2,proto3" json:"ExhibitPic2,omitempty"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime,omitempty"`
Introduct string `protobuf:"bytes,16,opt,name=Introduct,json=introduct,proto3" json:"Introduct,omitempty"`
NetworkTrace bool `protobuf:"varint,17,opt,name=NetworkTrace,json=networkTrace,proto3" json:"NetworkTrace,omitempty"`
CreateAddress string `protobuf:"bytes,18,opt,name=CreateAddress,json=createAddress,proto3" json:"CreateAddress,omitempty"`
Url string `protobuf:"bytes,19,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,20,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
Remark string `protobuf:"bytes,21,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,22,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
Enable bool `protobuf:"varint,23,opt,name=Enable,json=enable,proto3" json:"Enable,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
ArtworkId string `protobuf:"bytes,2,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId"`
UserId uint64 `protobuf:"varint,4,opt,name=UserId,json=userId,proto3" json:"UserId"`
Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name"`
ModelYear string `protobuf:"bytes,6,opt,name=ModelYear,json=modelYear,proto3" json:"ModelYear"`
Photo string `protobuf:"bytes,7,opt,name=Photo,json=photo,proto3" json:"Photo"`
ArtistPhoto string `protobuf:"bytes,8,opt,name=ArtistPhoto,json=artistPhoto,proto3" json:"ArtistPhoto"`
Width uint64 `protobuf:"varint,9,opt,name=Width,json=width,proto3" json:"Width"`
Height uint64 `protobuf:"varint,10,opt,name=Height,json=height,proto3" json:"Height"`
Ruler uint64 `protobuf:"varint,11,opt,name=Ruler,json=ruler,proto3" json:"Ruler"`
ExhibitInfo string `protobuf:"bytes,12,opt,name=ExhibitInfo,json=exhibitInfo,proto3" json:"ExhibitInfo"`
ExhibitPic1 string `protobuf:"bytes,13,opt,name=ExhibitPic1,json=exhibitPic1,proto3" json:"ExhibitPic1"`
ExhibitPic2 string `protobuf:"bytes,14,opt,name=ExhibitPic2,json=exhibitPic2,proto3" json:"ExhibitPic2"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime"`
Introduct string `protobuf:"bytes,16,opt,name=Introduct,json=introduct,proto3" json:"Introduct"`
NetworkTrace bool `protobuf:"varint,17,opt,name=NetworkTrace,json=networkTrace,proto3" json:"NetworkTrace"`
CreateAddress string `protobuf:"bytes,18,opt,name=CreateAddress,json=createAddress,proto3" json:"CreateAddress"`
Url string `protobuf:"bytes,19,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,20,opt,name=Types,json=types,proto3" json:"Types"`
Remark string `protobuf:"bytes,21,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,22,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
Enable bool `protobuf:"varint,23,opt,name=Enable,json=enable,proto3" json:"Enable"`
}
func (x *GetSupplyInfoData) Reset() {
@ -350,7 +350,7 @@ type GetSupplyInfoRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=Id,json=artistId,proto3" json:"Id,omitempty"`
Id uint64 `protobuf:"varint,1,opt,name=Id,json=artistId,proto3" json:"Id"`
}
func (x *GetSupplyInfoRequest) Reset() {
@ -397,29 +397,29 @@ type UpdateSupplyInfoRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
ArtworkId string `protobuf:"bytes,2,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId,omitempty"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
UserId uint64 `protobuf:"varint,4,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
ModelYear string `protobuf:"bytes,6,opt,name=ModelYear,json=modelYear,proto3" json:"ModelYear,omitempty"`
Photo string `protobuf:"bytes,7,opt,name=Photo,json=photo,proto3" json:"Photo,omitempty"`
ArtistPhoto string `protobuf:"bytes,8,opt,name=ArtistPhoto,json=artistPhoto,proto3" json:"ArtistPhoto,omitempty"`
Width uint64 `protobuf:"varint,9,opt,name=Width,json=width,proto3" json:"Width,omitempty"`
Height uint64 `protobuf:"varint,10,opt,name=Height,json=height,proto3" json:"Height,omitempty"`
Ruler uint64 `protobuf:"varint,11,opt,name=Ruler,json=ruler,proto3" json:"Ruler,omitempty"`
ExhibitInfo string `protobuf:"bytes,12,opt,name=ExhibitInfo,json=exhibitInfo,proto3" json:"ExhibitInfo,omitempty"`
ExhibitPic1 string `protobuf:"bytes,13,opt,name=ExhibitPic1,json=exhibitPic1,proto3" json:"ExhibitPic1,omitempty"`
ExhibitPic2 string `protobuf:"bytes,14,opt,name=ExhibitPic2,json=exhibitPic2,proto3" json:"ExhibitPic2,omitempty"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime,omitempty"`
Introduct string `protobuf:"bytes,16,opt,name=Introduct,json=introduct,proto3" json:"Introduct,omitempty"`
NetworkTrace bool `protobuf:"varint,17,opt,name=NetworkTrace,json=networkTrace,proto3" json:"NetworkTrace,omitempty"`
CreateAddress string `protobuf:"bytes,18,opt,name=CreateAddress,json=createAddress,proto3" json:"CreateAddress,omitempty"`
Url string `protobuf:"bytes,19,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,20,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
Remark string `protobuf:"bytes,21,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,22,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
Enable bool `protobuf:"varint,23,opt,name=Enable,json=enable,proto3" json:"Enable,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
ArtworkId string `protobuf:"bytes,2,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId"`
UserId uint64 `protobuf:"varint,4,opt,name=UserId,json=userId,proto3" json:"UserId"`
Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name"`
ModelYear string `protobuf:"bytes,6,opt,name=ModelYear,json=modelYear,proto3" json:"ModelYear"`
Photo string `protobuf:"bytes,7,opt,name=Photo,json=photo,proto3" json:"Photo"`
ArtistPhoto string `protobuf:"bytes,8,opt,name=ArtistPhoto,json=artistPhoto,proto3" json:"ArtistPhoto"`
Width uint64 `protobuf:"varint,9,opt,name=Width,json=width,proto3" json:"Width"`
Height uint64 `protobuf:"varint,10,opt,name=Height,json=height,proto3" json:"Height"`
Ruler uint64 `protobuf:"varint,11,opt,name=Ruler,json=ruler,proto3" json:"Ruler"`
ExhibitInfo string `protobuf:"bytes,12,opt,name=ExhibitInfo,json=exhibitInfo,proto3" json:"ExhibitInfo"`
ExhibitPic1 string `protobuf:"bytes,13,opt,name=ExhibitPic1,json=exhibitPic1,proto3" json:"ExhibitPic1"`
ExhibitPic2 string `protobuf:"bytes,14,opt,name=ExhibitPic2,json=exhibitPic2,proto3" json:"ExhibitPic2"`
CreateTime string `protobuf:"bytes,15,opt,name=CreateTime,json=createTime,proto3" json:"CreateTime"`
Introduct string `protobuf:"bytes,16,opt,name=Introduct,json=introduct,proto3" json:"Introduct"`
NetworkTrace bool `protobuf:"varint,17,opt,name=NetworkTrace,json=networkTrace,proto3" json:"NetworkTrace"`
CreateAddress string `protobuf:"bytes,18,opt,name=CreateAddress,json=createAddress,proto3" json:"CreateAddress"`
Url string `protobuf:"bytes,19,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,20,opt,name=Types,json=types,proto3" json:"Types"`
Remark string `protobuf:"bytes,21,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,22,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
Enable bool `protobuf:"varint,23,opt,name=Enable,json=enable,proto3" json:"Enable"`
}
func (x *UpdateSupplyInfoRequest) Reset() {
@ -658,10 +658,10 @@ type GetVideoListRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types"`
}
func (x *GetVideoListRequest) Reset() {
@ -729,7 +729,7 @@ type GetVideoListRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*GetVideoListData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
Data []*GetVideoListData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data"`
}
func (x *GetVideoListRespond) Reset() {
@ -776,13 +776,13 @@ type GetVideoListData struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
Remark string `protobuf:"bytes,5,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,6,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
Enable bool `protobuf:"varint,7,opt,name=Enable,json=enable,proto3" json:"Enable,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types"`
Remark string `protobuf:"bytes,5,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,6,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
Enable bool `protobuf:"varint,7,opt,name=Enable,json=enable,proto3" json:"Enable"`
}
func (x *GetVideoListData) Reset() {
@ -871,10 +871,10 @@ type GetVideoRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types"`
}
func (x *GetVideoRequest) Reset() {
@ -942,10 +942,10 @@ type UpdateVideoRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types"`
}
func (x *UpdateVideoRequest) Reset() {
@ -1051,10 +1051,10 @@ type GetExamListRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types"`
}
func (x *GetExamListRequest) Reset() {
@ -1122,7 +1122,7 @@ type GetExamListRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*GetExamListData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
Data []*GetExamListData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data"`
}
func (x *GetExamListRespond) Reset() {
@ -1169,16 +1169,16 @@ type GetExamListData struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Title string `protobuf:"bytes,3,opt,name=Title,json=title,proto3" json:"Title,omitempty"`
Class string `protobuf:"bytes,4,opt,name=Class,json=class,proto3" json:"Class,omitempty"`
TitleScore uint64 `protobuf:"varint,5,opt,name=TitleScore,json=titleScore,proto3" json:"TitleScore,omitempty"`
Score string `protobuf:"bytes,6,opt,name=Score,json=score,proto3" json:"Score,omitempty"`
Types string `protobuf:"bytes,7,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,9,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
Enable bool `protobuf:"varint,10,opt,name=Enable,json=enable,proto3" json:"Enable,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Title string `protobuf:"bytes,3,opt,name=Title,json=title,proto3" json:"Title"`
Class string `protobuf:"bytes,4,opt,name=Class,json=class,proto3" json:"Class"`
TitleScore uint64 `protobuf:"varint,5,opt,name=TitleScore,json=titleScore,proto3" json:"TitleScore"`
Score string `protobuf:"bytes,6,opt,name=Score,json=score,proto3" json:"Score"`
Types string `protobuf:"bytes,7,opt,name=Types,json=types,proto3" json:"Types"`
Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,9,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
Enable bool `protobuf:"varint,10,opt,name=Enable,json=enable,proto3" json:"Enable"`
}
func (x *GetExamListData) Reset() {
@ -1288,16 +1288,16 @@ type GetExamRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Title string `protobuf:"bytes,3,opt,name=Title,json=title,proto3" json:"Title,omitempty"`
Class string `protobuf:"bytes,4,opt,name=Class,json=class,proto3" json:"Class,omitempty"`
TitleScore uint64 `protobuf:"varint,5,opt,name=TitleScore,json=titleScore,proto3" json:"TitleScore,omitempty"`
Score string `protobuf:"bytes,6,opt,name=Score,json=score,proto3" json:"Score,omitempty"`
Types string `protobuf:"bytes,7,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,9,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
Enable bool `protobuf:"varint,10,opt,name=Enable,json=enable,proto3" json:"Enable,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Title string `protobuf:"bytes,3,opt,name=Title,json=title,proto3" json:"Title"`
Class string `protobuf:"bytes,4,opt,name=Class,json=class,proto3" json:"Class"`
TitleScore uint64 `protobuf:"varint,5,opt,name=TitleScore,json=titleScore,proto3" json:"TitleScore"`
Score string `protobuf:"bytes,6,opt,name=Score,json=score,proto3" json:"Score"`
Types string `protobuf:"bytes,7,opt,name=Types,json=types,proto3" json:"Types"`
Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,9,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
Enable bool `protobuf:"varint,10,opt,name=Enable,json=enable,proto3" json:"Enable"`
}
func (x *GetExamRequest) Reset() {
@ -1407,16 +1407,16 @@ type UpdateExamRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Title string `protobuf:"bytes,3,opt,name=Title,json=title,proto3" json:"Title,omitempty"`
Class string `protobuf:"bytes,4,opt,name=Class,json=class,proto3" json:"Class,omitempty"`
TitleScore uint64 `protobuf:"varint,5,opt,name=TitleScore,json=titleScore,proto3" json:"TitleScore,omitempty"`
Score string `protobuf:"bytes,6,opt,name=Score,json=score,proto3" json:"Score,omitempty"`
Types string `protobuf:"bytes,7,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,9,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
Enable bool `protobuf:"varint,10,opt,name=Enable,json=enable,proto3" json:"Enable,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Title string `protobuf:"bytes,3,opt,name=Title,json=title,proto3" json:"Title"`
Class string `protobuf:"bytes,4,opt,name=Class,json=class,proto3" json:"Class"`
TitleScore uint64 `protobuf:"varint,5,opt,name=TitleScore,json=titleScore,proto3" json:"TitleScore"`
Score string `protobuf:"bytes,6,opt,name=Score,json=score,proto3" json:"Score"`
Types string `protobuf:"bytes,7,opt,name=Types,json=types,proto3" json:"Types"`
Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,9,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
Enable bool `protobuf:"varint,10,opt,name=Enable,json=enable,proto3" json:"Enable"`
}
func (x *UpdateExamRequest) Reset() {
@ -1526,7 +1526,7 @@ type UpdateExamRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Percent int32 `protobuf:"varint,1,opt,name=Percent,json=percent,proto3" json:"Percent,omitempty"`
Percent int32 `protobuf:"varint,1,opt,name=Percent,json=percent,proto3" json:"Percent"`
}
func (x *UpdateExamRespond) Reset() {
@ -1573,10 +1573,10 @@ type GetArtistInfoListRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url,omitempty"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types,omitempty"`
ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
Url string `protobuf:"bytes,3,opt,name=Url,json=url,proto3" json:"Url"`
Types string `protobuf:"bytes,4,opt,name=Types,json=types,proto3" json:"Types"`
}
func (x *GetArtistInfoListRequest) Reset() {
@ -1644,7 +1644,7 @@ type GetArtistInfoListRespond struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*GetArtistInfoListData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
Data []*GetArtistInfoListData `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data"`
}
func (x *GetArtistInfoListRespond) Reset() {
@ -1691,17 +1691,17 @@ type GetArtistInfoListData struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
BankAccount string `protobuf:"bytes,4,opt,name=BankAccount,json=bankAccount,proto3" json:"BankAccount,omitempty"`
BankName string `protobuf:"bytes,5,opt,name=BankName,json=bankName,proto3" json:"BankName,omitempty"`
Introduct string `protobuf:"bytes,6,opt,name=Introduct,json=introduct,proto3" json:"Introduct,omitempty"`
CountryArtLevel string `protobuf:"bytes,7,opt,name=CountryArtLevel,json=countryArtLevel,proto3" json:"CountryArtLevel,omitempty"`
ArtistCertPic string `protobuf:"bytes,8,opt,name=ArtistCertPic,json=artistCertPic,proto3" json:"ArtistCertPic,omitempty"`
Remark string `protobuf:"bytes,9,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,10,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
State uint64 `protobuf:"varint,11,opt,name=State,json=state,proto3" json:"State,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId"`
BankAccount string `protobuf:"bytes,4,opt,name=BankAccount,json=bankAccount,proto3" json:"BankAccount"`
BankName string `protobuf:"bytes,5,opt,name=BankName,json=bankName,proto3" json:"BankName"`
Introduct string `protobuf:"bytes,6,opt,name=Introduct,json=introduct,proto3" json:"Introduct"`
CountryArtLevel string `protobuf:"bytes,7,opt,name=CountryArtLevel,json=countryArtLevel,proto3" json:"CountryArtLevel"`
ArtistCertPic string `protobuf:"bytes,8,opt,name=ArtistCertPic,json=artistCertPic,proto3" json:"ArtistCertPic"`
Remark string `protobuf:"bytes,9,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,10,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
State uint64 `protobuf:"varint,11,opt,name=State,json=state,proto3" json:"State"`
}
func (x *GetArtistInfoListData) Reset() {
@ -1818,17 +1818,17 @@ type GetArtistInfoRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
BankAccount string `protobuf:"bytes,4,opt,name=BankAccount,json=bankAccount,proto3" json:"BankAccount,omitempty"`
BankName string `protobuf:"bytes,5,opt,name=BankName,json=bankName,proto3" json:"BankName,omitempty"`
Introduct string `protobuf:"bytes,6,opt,name=Introduct,json=introduct,proto3" json:"Introduct,omitempty"`
CountryArtLevel string `protobuf:"bytes,7,opt,name=CountryArtLevel,json=countryArtLevel,proto3" json:"CountryArtLevel,omitempty"`
ArtistCertPic string `protobuf:"bytes,8,opt,name=ArtistCertPic,json=artistCertPic,proto3" json:"ArtistCertPic,omitempty"`
Remark string `protobuf:"bytes,9,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,10,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
State uint64 `protobuf:"varint,11,opt,name=State,json=state,proto3" json:"State,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId"`
BankAccount string `protobuf:"bytes,4,opt,name=BankAccount,json=bankAccount,proto3" json:"BankAccount"`
BankName string `protobuf:"bytes,5,opt,name=BankName,json=bankName,proto3" json:"BankName"`
Introduct string `protobuf:"bytes,6,opt,name=Introduct,json=introduct,proto3" json:"Introduct"`
CountryArtLevel string `protobuf:"bytes,7,opt,name=CountryArtLevel,json=countryArtLevel,proto3" json:"CountryArtLevel"`
ArtistCertPic string `protobuf:"bytes,8,opt,name=ArtistCertPic,json=artistCertPic,proto3" json:"ArtistCertPic"`
Remark string `protobuf:"bytes,9,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,10,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
State uint64 `protobuf:"varint,11,opt,name=State,json=state,proto3" json:"State"`
}
func (x *GetArtistInfoRequest) Reset() {
@ -1945,17 +1945,17 @@ type UpdateArtistInfoRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId,omitempty"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
BankAccount string `protobuf:"bytes,4,opt,name=BankAccount,json=bankAccount,proto3" json:"BankAccount,omitempty"`
BankName string `protobuf:"bytes,5,opt,name=BankName,json=bankName,proto3" json:"BankName,omitempty"`
Introduct string `protobuf:"bytes,6,opt,name=Introduct,json=introduct,proto3" json:"Introduct,omitempty"`
CountryArtLevel string `protobuf:"bytes,7,opt,name=CountryArtLevel,json=countryArtLevel,proto3" json:"CountryArtLevel,omitempty"`
ArtistCertPic string `protobuf:"bytes,8,opt,name=ArtistCertPic,json=artistCertPic,proto3" json:"ArtistCertPic,omitempty"`
Remark string `protobuf:"bytes,9,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
Remark2 string `protobuf:"bytes,10,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
State uint64 `protobuf:"varint,11,opt,name=State,json=state,proto3" json:"State,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID"`
UserId uint64 `protobuf:"varint,2,opt,name=UserId,json=userId,proto3" json:"UserId"`
ArtistId string `protobuf:"bytes,3,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId"`
BankAccount string `protobuf:"bytes,4,opt,name=BankAccount,json=bankAccount,proto3" json:"BankAccount"`
BankName string `protobuf:"bytes,5,opt,name=BankName,json=bankName,proto3" json:"BankName"`
Introduct string `protobuf:"bytes,6,opt,name=Introduct,json=introduct,proto3" json:"Introduct"`
CountryArtLevel string `protobuf:"bytes,7,opt,name=CountryArtLevel,json=countryArtLevel,proto3" json:"CountryArtLevel"`
ArtistCertPic string `protobuf:"bytes,8,opt,name=ArtistCertPic,json=artistCertPic,proto3" json:"ArtistCertPic"`
Remark string `protobuf:"bytes,9,opt,name=Remark,json=remark,proto3" json:"Remark"`
Remark2 string `protobuf:"bytes,10,opt,name=Remark2,json=remark2,proto3" json:"Remark2"`
State uint64 `protobuf:"varint,11,opt,name=State,json=state,proto3" json:"State"`
}
func (x *UpdateArtistInfoRequest) Reset() {

View File

@ -2,7 +2,6 @@ package model
import (
"fmt"
"os"
"strings"
"time"